1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-25 16:19:44 +02:00

Show created pages in menu (#11)

* Show created pages in menu

* reverse children sorting
This commit is contained in:
Peter Savchenko 2018-10-19 21:08:24 +03:00 committed by GitHub
parent 730eff7995
commit f845a0d09f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 65 additions and 18 deletions

View file

@ -5,8 +5,10 @@ const home = require('./home');
const pages = require('./pages');
const api = require('./api');
router.use('/', home);
router.use('/', pages);
const pagesMiddleware = require('./middlewares/pages');
router.use('/', pagesMiddleware, home);
router.use('/', pagesMiddleware, pages);
router.use('/api', api);
module.exports = router;