diff --git a/client/public/assets/img/404.gif b/client/public/assets/img/404.gif new file mode 100644 index 0000000..dd6067c Binary files /dev/null and b/client/public/assets/img/404.gif differ diff --git a/client/public/views/404.html b/client/public/views/404.html new file mode 100644 index 0000000..5640d69 --- /dev/null +++ b/client/public/views/404.html @@ -0,0 +1,20 @@ + + + + + 404 - Pong Hacks + + + 404 - BALL NOT FOUND + + + \ No newline at end of file diff --git a/server/server.js b/server/server.js index 08cfcbc..369c1e2 100644 --- a/server/server.js +++ b/server/server.js @@ -36,6 +36,10 @@ app.use("/api/stats", require("./controllers/api/stats")); app.use("/", require("./controllers/static")); +app.use(function(req, res, next) { + res.status(404).render("404.html"); +}); + http.listen(port, function(){ var msg = "Ping Ponging on Port:" + port; console.log(msg.bgRed);