mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-07 22:45:23 +02:00
Turned back variables
This commit is contained in:
parent
09187587fd
commit
c2130a2225
1 changed files with 1 additions and 2 deletions
|
@ -44,8 +44,6 @@ router.get('/page/edit/:id', verifyToken, allowEdit, async (req: Request, res: R
|
||||||
page,
|
page,
|
||||||
parentsChildrenOrdered,
|
parentsChildrenOrdered,
|
||||||
pagesAvailableGrouped,
|
pagesAvailableGrouped,
|
||||||
pagesAvailable,
|
|
||||||
config: req.app.locals.config,
|
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
res.status(404);
|
res.status(404);
|
||||||
|
@ -67,6 +65,7 @@ router.get('/page/:id', verifyToken, async (req: Request, res: Response, next: N
|
||||||
res.render('pages/page', {
|
res.render('pages/page', {
|
||||||
page,
|
page,
|
||||||
pageParent,
|
pageParent,
|
||||||
|
config: req.app.locals.config,
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
res.status(404);
|
res.status(404);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue