autotagger

This commit is contained in:
Flummi
2021-12-23 06:07:19 +01:00
parent 2c80c58f59
commit 885d729a76
3 changed files with 45 additions and 7 deletions

View File

@ -0,0 +1,15 @@
const auth = async (req, res, next) => {
if(!req.session)
return res.redirect("/login");
return next();
};
export default (router, tpl) => {
router.group(/^\/settings/, group => {
group.get(/$/, auth, (req, res) => {
res.end("settings lol");
});
});
return router;
};