homepage.js/routes/about.js

12 lines
306 B
JavaScript
Raw Normal View History

2023-02-22 07:43:12 +01:00
const Helpers = require('../helpers');
const handler = require('express-async-handler');
async function about(req, res) {
res.send(await Helpers.ViewLoader.load('about.pug', {
current_route: req.originalUrl
}));
}
module.exports = (router) => {
router.get('/about', handler(about));
}