mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-07 06:25:21 +02:00
Removed passing favicon locals and turned back removed variables
This commit is contained in:
parent
3985edd62c
commit
09187587fd
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,6 @@ router.get('/auth', csrfProtection, function (req: Request, res: Response) {
|
|||
res.render('auth', {
|
||||
title: 'Login page',
|
||||
csrfToken: req.csrfToken(),
|
||||
favicon: req.app.locals.favicon,
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@ router.get('/page/new', verifyToken, allowEdit, async (req: Request, res: Respon
|
|||
res.render('pages/form', {
|
||||
pagesAvailableGrouped,
|
||||
page: null,
|
||||
favicon: req.app.locals.favicon,
|
||||
});
|
||||
} catch (error) {
|
||||
res.status(404);
|
||||
|
@ -44,7 +43,9 @@ router.get('/page/edit/:id', verifyToken, allowEdit, async (req: Request, res: R
|
|||
res.render('pages/form', {
|
||||
page,
|
||||
parentsChildrenOrdered,
|
||||
pagesAvailableGrouped,
|
||||
pagesAvailable,
|
||||
config: req.app.locals.config,
|
||||
});
|
||||
} catch (error) {
|
||||
res.status(404);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue