diff --git a/server/src/index.ts b/server/src/index.ts index ec853054..34b5d601 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -46,7 +46,7 @@ app.post('/api/v2/segment-target/:integrationKey', async (req, res) => { } }); -app.all('*', (_, res) => { +app.use((_, res) => { return sendErrorResponse(res, new AppError(HttpStatus.notFound, `not found`)); });