autotagger
This commit is contained in:
15
src/inc/routes/settings.mjs
Normal file
15
src/inc/routes/settings.mjs
Normal 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;
|
||||
};
|
Reference in New Issue
Block a user