adding terms of service

This commit is contained in:
x
2025-03-22 15:37:42 +01:00
parent ba7ea955c5
commit e24f3f9e35
4 changed files with 145 additions and 41 deletions

View File

@ -111,6 +111,12 @@ export default (router, tpl) => {
});
});
router.get(/^\/(terms)$/, (req, res) => {
res.reply({
body: tpl.render(req.url.split[0], { tmp: null }, req)
});
});
router.get(/^\/mode\/(\d)/, lib.loggedin, async (req, res) => {
const mode = +req.url.split[1];
let referertmp = req.headers.referer;