404 error

This commit is contained in:
Thomas Hobson 2021-04-23 14:49:12 +12:00
parent 62ce090b91
commit 487bde6526
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 4 additions and 0 deletions

View File

@ -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(':');