Add JSON API 404 handler
This commit is contained in:
parent
2c9b5ea3d8
commit
be564dccea
@ -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;
|
export default server;
|
Loading…
Reference in New Issue
Block a user