homepage.js/routes/pages.js

14 lines
325 B
JavaScript
Raw Normal View History

2023-03-09 14:26:00 +01:00
const handler = require('express-async-handler');
async function services(req, res) {
res.template('page/services.pug');
}
2023-03-09 14:40:29 +01:00
async function resume(req, res) {
res.template('page/resume.pug');
}
2023-03-09 14:26:00 +01:00
module.exports = (router) => {
2023-03-09 14:40:29 +01:00
router.get('/services', handler(services))
router.get('/resume', handler(resume))
2023-03-09 14:26:00 +01:00
}