ADD: about page

This commit is contained in:
igor
2018-12-09 22:46:14 +00:00
parent af657c568d
commit d1de8cf447
11 changed files with 626 additions and 82 deletions

View File

@@ -16,6 +16,12 @@ router.get('/', function(req, res) {
});
});
router.get('/about', function(req, res) {
let html = fs.readFileSync('./templates/about.html').toString('utf8');
res.setHeader('Content-Type', 'text/html');
return res.status(200).send(mustache.render(html, {}));
});
router.use(function(req, res) {
res.status(404).send('404');
});