Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
seantokuzo committed Jun 12, 2024
1 parent d3b2a50 commit 1e89b4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ if (process.env.NODE_ENV === 'production') {
);
}

// Catch all route handler
app.use((_req, _res) => {
throw new NotFoundError();
});

// Global error handler
app.use(errorHandler);

export default app;

0 comments on commit 1e89b4b

Please sign in to comment.