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

Page creation basics (#7)

* Page cration basics

* remove unused code

* add client-side Header validation

* remove static method

* rm await duplication
This commit is contained in:
Peter Savchenko 2018-10-04 22:08:21 +03:00 committed by GitHub
parent 5c0560a2ed
commit 073772c047
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 476 additions and 93 deletions

View file

@ -7,7 +7,11 @@ const Pages = require('../controllers/pages');
* Create new page form
*/
router.get('/page/new', async (req, res) => {
res.render('pages/form');
let pagesAvailable = await Pages.getAll();
res.render('pages/form', {
pagesAvailable
});
});
/**