diff --git a/backend/index.js b/backend/index.js index 8d80c02..7b111fa 100644 --- a/backend/index.js +++ b/backend/index.js @@ -100,8 +100,8 @@ app.get('/read/:hash', async (req, res) => { }); app.get('*', (req, res) => { - console.log(`req.path: ${req.path}`); - res.send('Hello World!'); + console.log(`404 req.path: ${req.path}`); + res.status(404).json({ errorCode: 404 }); }); app.listen(port, () => {