Minor quick fix
This commit is contained in:
parent
27bbd490ea
commit
33f8f14ca0
6
app.js
6
app.js
|
@ -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;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Reference in a new issue