init source

This commit is contained in:
Le Viet
2022-03-07 22:07:57 +07:00
parent e4376f3777
commit 8aba590a8d
11240 changed files with 1012977 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
const memberController = require("../controllers").member;
module.exports = app => {
app.get("/api", (req, res) =>
res.status(200).send({
message: "Welcome to the Pizza API!"
})
);
app.post("/api/v1/user/register", memberController.register);
app.put("/api/v1/user/login", memberController.login);
app.get("/api/v1/user/forgot-password", memberController.forgotPassword);
app.get("/api/v1/user/reset-password", memberController.resetPassword);
app.delete("/api/v1/user/profile", memberController.profile);
};