diff --git a/serwer/app/apiRoutes.js b/serwer/app/apiRoutes.js index 60544d1..c27ef73 100644 --- a/serwer/app/apiRoutes.js +++ b/serwer/app/apiRoutes.js @@ -58,6 +58,8 @@ api.use('/panel', apiPanel); const apiLiczacy = require('./apiLiczacy.js'); api.use('/liczacy', apiLiczacy); - +api.all('*', function(req, res) { + res.send(404, {response: "Nie znaleziono"}); +}); module.exports = api; \ No newline at end of file