aboutsummaryrefslogtreecommitdiffstats
path: root/app/middlewares
diff options
context:
space:
mode:
Diffstat (limited to 'app/middlewares')
-rw-r--r--app/middlewares/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/middlewares/index.ts b/app/middlewares/index.ts
index d0ba721..d07726a 100644
--- a/app/middlewares/index.ts
+++ b/app/middlewares/index.ts
@@ -8,10 +8,10 @@ export const navbar = ((req, res, next) => {
});
export const page = ((req, res, next) => {
- let path = req.params.page ?? 'index';
+ const path = req.params.page ?? 'index';
res.locals.path = path;
- let page = res.locals.directory.get(path);
+ const page = res.locals.directory.get(path);
if (!page) {
next();