backend stuff lol

This commit is contained in:
Flummi
2021-12-18 19:52:38 +01:00
parent adb4f18a7f
commit d5eada1814
5 changed files with 87 additions and 31 deletions

View File

@ -59,7 +59,7 @@ import flummpress from "flummpress";
app.use(async (req, res) => {
// sessionhandler
req.session = false;
if(req.url.pathname.match(/^\/(s|b|t|ca)/))
if(req.url.pathname.match(/^\/(s|b|t|ca)\//))
return;
req.theme = req.cookies.theme ?? 'f0ck';