protect statistics user name and redirect typos
This commit is contained in:
parent
abac0c8c70
commit
34a433c273
|
@ -28,5 +28,14 @@ module.exports = withPlausibleProxy()({
|
||||||
destination: '/api/lnurlp/:username'
|
destination: '/api/lnurlp/:username'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
async redirects () {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
source: '/statistics',
|
||||||
|
destination: '/satistics?inc=invoice,withdrawal',
|
||||||
|
permanent: true
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
UPDATE users set name = 'thanks_statistics' where name = 'statistics';
|
||||||
|
INSERT INTO "users" ("name") VALUES ('statistics');
|
Loading…
Reference in New Issue