Minor quick fix

This commit is contained in:
Dryusdan 2017-07-22 01:24:15 +02:00
parent 27bbd490ea
commit 33f8f14ca0
2 changed files with 2 additions and 5 deletions

6
app.js
View file

@ -31,7 +31,6 @@ class Nodezzarella {
this.run(); this.run();
} }
}).catch((err) => { }).catch((err) => {
console.log(err);
new Error("Nodezzarella can't initialize"); new Error("Nodezzarella can't initialize");
}); });
} }
@ -56,10 +55,7 @@ class Nodezzarella {
app.use(config.webroot || "/", routes); app.use(config.webroot || "/", routes);
app.use(function(req, res, next) { app.use(function(req, res, next) {
res.status(404); res.status(404);
res.send({"data":{ res.send("404 not found");
code: 404,
error : 'Not Found'
}});
return; return;
}); });

View file

@ -4,6 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>{{title}}</title> <title>{{title}}</title>
<link rel="stylesheet" href="/assets/css/global.css"> <link rel="stylesheet" href="/assets/css/global.css">
<link href='https://miaou.drycat.fr/favicon.ico' rel='icon' type='image/x-icon'>
</head> </head>
<body> <body>
<header> <header>