mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-23 07:19:28 -07:00
Code consistency
This commit is contained in:
parent
38ab04c887
commit
6eb57bf521
1 changed files with 6 additions and 6 deletions
|
@ -57,13 +57,13 @@ router.get('/guides', (req, res) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
router.get('/guides/:guideId', (req, res) => {
|
router.get('/guides/:guideId', (req, res) => {
|
||||||
let data = fs.readFileSync(`./guides/${req.params.guideId}.md`, "utf8", (err, data) => {
|
let data = fs.readFileSync(`./guides/${req.params.guideId}.md`, "utf8", (err, data) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
return data;
|
return data;
|
||||||
});
|
});
|
||||||
|
|
||||||
let content = md.render(data, env);
|
let content = md.render(data, env);
|
||||||
res.render(`guide`, { title: `${env.title} - Keyoxide`, content: content })
|
res.render(`guide`, { title: `${env.title} - Keyoxide`, content: content })
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = router;
|
module.exports = router;
|
||||||
|
|
Loading…
Reference in a new issue