1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-01 19:45:23 +02:00

Page model (#1)

* Initial database and page MVC

* Add mocha tests

* Add docs

* Add docs about nedb query options

* Add eslint and editorconfig + husky

* Improve precommit script

* Remove unnecessary dependencies
This commit is contained in:
George Berezhnoy 2018-08-17 13:58:44 +03:00 committed by GitHub
parent 2e717f6415
commit 7add63d90b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 4361 additions and 42 deletions

View file

@ -1,9 +1,10 @@
const express = require('express')
const express = require('express');
const router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
});
const home = require('./home');
const pages = require('./pages');
router.use('/', home);
router.use('/', pages);
module.exports = router;