This commit is contained in:
2018-03-02 03:59:09 -05:00
parent d37cc7cb27
commit ab2ada933d
4 changed files with 7 additions and 7 deletions

4
app.js
View File

@@ -21,8 +21,8 @@ app.use('/roles', roles);
app.use('/users', users);
// catch 404 and forward to error handler
app.use( function(req, res, next) {
console.log('[App::use] 404: Not Found', { args: arguments })
app.use(function (req, res, next) {
console.log('[App::use] 404: Not Found', { args: arguments });
var err = new Error('Not Found', { args: arguments });
err.status = 404;
next(err);