Skip to content

Commit

Permalink
backend: Update 404 error handler to include missing request parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
CSantosM committed Feb 25, 2025
1 parent e76a5f3 commit 32ab98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const createApp = () => {
app.use('/meet/health', (_req:Request, res: Response) => res.status(200).send('OK'));
app.use('/livekit/webhook', livekitRouter);
app.get(/^(?!\/api).*$/, (_req: Request, res: Response) => res.sendFile(indexHtmlPath));
app.use((res: Response) => res.status(404).json({ error: 'Not found' }));
app.use((_req: Request, res: Response) => res.status(404).json({ error: 'Not found' }));

return app;
};
Expand Down

0 comments on commit 32ab98a

Please sign in to comment.