diff --git a/app/src/api/api.ts b/app/src/api/api.ts index 3b799a38..253a2081 100644 --- a/app/src/api/api.ts +++ b/app/src/api/api.ts @@ -134,4 +134,8 @@ server.get('/search', function (req, res) { }); }) +server.use((req, res) => { + res.status(404).json({ error: 'Resource not found'}); +}) + export default server; \ No newline at end of file