Add JSON API 404 handler

This commit is contained in:
Maciej Ziarkowski 2019-08-14 14:13:14 +01:00
parent 2c9b5ea3d8
commit be564dccea

View File

@ -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;