This commit is contained in:
Mylloon 2022-06-23 20:52:08 +02:00
parent e125630410
commit 904a0978bf
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -7,7 +7,10 @@ const utils = require('../utils/utils');
// Home Page // Home Page
router.get('/', (_, res) => { router.get('/', (_, res) => {
readme.get() readme.get()
.then(data => res.render('index', { readme: marked.parse(data), firstname_placeholder: utils.randomFirstname() })); .then(data => res.render('index', {
readme: marked.parse(data),
firstname_placeholder: utils.randomFirstname()
}));
}); });
module.exports = router; module.exports = router;