Adjust app

This commit is contained in:
Fred Boniface 2022-12-01 13:53:32 +00:00
parent 3bd6153211
commit 53b7909910

1
app.js
View File

@ -21,6 +21,7 @@ app.use((err, req, res, next) => {
const statusCode = err.statuscode || 500;
console.error(err.message, err.stack);
res.status(statusCode).json({'message': err.message});
return;
});
// Point to Routes