Skip to content

Commit

Permalink
400 to 500 (wrong change)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZIJ authored Oct 27, 2024
1 parent 7d11431 commit eae27db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ app.use(express.static(path.join(__dirname, 'public')));
app.use('/', indexRouter);
app.use('/users', usersRouter);

// catch 404 and forward to error handler
// catch 500 and forward to error handler
app.use(function(req, res, next) {
next(createError(404));
next(createError(500));
});

// error handler
Expand Down

0 comments on commit eae27db

Please sign in to comment.