From 487bde65269b1fc5684fc9cdbb334c4e5c0779dd Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Fri, 23 Apr 2021 14:49:12 +1200 Subject: [PATCH] 404 error --- api/src/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/index.js b/api/src/index.js index 29f4c1c..94840ad 100644 --- a/api/src/index.js +++ b/api/src/index.js @@ -109,6 +109,10 @@ const app = express(); .send(runtimes); }); + app.use(function (req,res,next){ + return res.status(404).send({message: 'Not Found'}); + }); + logger.debug('Calling app.listen'); const [ address, port ] = config.bind_address.split(':');