changing how to about

This commit is contained in:
Flummi
2021-03-01 22:46:06 +01:00
parent 7626f13cfa
commit 0b720d998d
2 changed files with 41 additions and 1 deletions

View File

@ -49,7 +49,7 @@ router.get(/^\/([0-9]+)$/, async (req, res) => {
res.reply({ body: tpl.render("views/item", data) });
});
router.get(/^\/(contact|help|how)$/, (req, res) => {
router.get(/^\/(contact|help|about)$/, (req, res) => {
res.reply({ body: tpl.render(`views/${req.url.split[0]}`) });
});