From 5bcc7fbcd13c69fb6d9dd9bbecd959fad3d8ca8c Mon Sep 17 00:00:00 2001 From: LMBishop <13875753+LMBishop@users.noreply.github.com> Date: Tue, 21 Dec 2021 15:34:09 +0000 Subject: Cleanup code --- app/routes/page/router.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/routes/page/router.ts') diff --git a/app/routes/page/router.ts b/app/routes/page/router.ts index 89cd59a..af5e844 100644 --- a/app/routes/page/router.ts +++ b/app/routes/page/router.ts @@ -1,4 +1,4 @@ -import express, { Router } from 'express'; +import express from 'express'; import { navbar, page } from '../../middlewares/index.js'; export const router = express.Router({ mergeParams: true }); @@ -7,7 +7,7 @@ router.use('/:page.wiki', page); router.use('/:page?', page); router.get('/:page.wiki', (req, res, next) => { - let page = res.locals.page; + const page = res.locals.page; if (!page) { next(); @@ -19,7 +19,7 @@ router.get('/:page.wiki', (req, res, next) => { }); router.get('/:page?', navbar, (req, res, next) => { - let page = res.locals.page; + const page = res.locals.page; if (!page) { next(); -- cgit v1.2.3-70-g09d2