This commit is contained in:
Kfir Dayan 2023-04-02 17:03:31 +03:00
parent 8b04c510a7
commit cfc2d3bc9a

View file

@ -63,4 +63,9 @@ webServer.use(express.static('public'))
webServer.listen(process.env.PORT, () => {
console.log('Example app listening on port '+process.env.PORT+'!')
})
// when client try to access 404 file
webServer.use(function (req, res, next) {
res.status(404).send("Sorry can't find that!")
})