Migrate to pug

This commit is contained in:
soraefir
2023-06-25 12:26:17 +02:00
parent 0693d47939
commit 681975a44b
54 changed files with 688 additions and 22868 deletions

View File

@ -41,9 +41,8 @@ module.exports = (fastify, opts, done) => {
fastify.level.db.get(req.params.id, (err, val) => {
if(err){
console.warn(err);
reply.send({name:"New Journey", main:[]});
reply.code(500).send();
} else {
console.log(JSON.parse(val))
reply.send(JSON.parse(val));
}
});