- fix: return the item saved
This commit is contained in:
@@ -81,11 +81,11 @@ app.use('/todos', todos_router);
|
||||
app.use('/users', users_router);
|
||||
|
||||
// catch 404 and forward to error handler
|
||||
app.use(function (req, res, next) {
|
||||
var err = new Error('Not Found');
|
||||
err.status = 404;
|
||||
next(err);
|
||||
});
|
||||
// app.use(function (req, res, next) {
|
||||
// var err = new Error('Not Found');
|
||||
// err.status = 404;
|
||||
// next(err);
|
||||
// });
|
||||
|
||||
|
||||
// app.set('views', path.join(__dirname, 'views'));
|
||||
|
||||
Reference in New Issue
Block a user