diff --git a/README.md b/README.md new file mode 100644 index 0000000..ca6f907 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# PackageDelivery +It's a project in which we keep a record of all the package and generate OTP for each student which is needed to be present at the time of approval of his/her package. diff --git a/index.js b/index.js index bf91a1e..21f55dd 100644 --- a/index.js +++ b/index.js @@ -55,13 +55,16 @@ app.post("/register", (req, res) => { }); } }) - }); +app.get("*", (req, res) => { + res.send({message: 'Error 404! Page Not Found'}); +} + app.listen(process.env.PORT, (err) => { if (err) { console.log("Error in running server"); return; } console.log(`Server is up and running on http://localhost:${process.env.PORT}`); -}); \ No newline at end of file +});