homepage.js/routes/homepage.js

17 lines
309 B
JavaScript
Raw Normal View History

2023-02-13 02:16:46 +01:00
const Helpers = require('../helpers');
async function handler(req, res) {
2023-02-18 14:41:24 +01:00
res.send(
await Helpers.ViewLoader.load(
'main.pug',
{
current_route: '/'
}
)
);
return;
2023-02-13 02:16:46 +01:00
}
module.exports = (router) => {
router.get('/', handler);
}