Linting
This commit is contained in:
4
app.js
4
app.js
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user