aboutsummaryrefslogtreecommitdiffstats
path: root/app/middlewares/index.ts
diff options
context:
space:
mode:
authorLMBishop <13875753+LMBishop@users.noreply.github.com>2021-12-21 15:34:09 +0000
committerLMBishop <13875753+LMBishop@users.noreply.github.com>2021-12-21 15:34:09 +0000
commit5bcc7fbcd13c69fb6d9dd9bbecd959fad3d8ca8c (patch)
tree3ca433939e36ce71e058b007a88581ad86e49961 /app/middlewares/index.ts
parenta8d3f95cf8038f24a760551ed8a3342251f81052 (diff)
Cleanup code
Diffstat (limited to 'app/middlewares/index.ts')
-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();