From a0efbe69a5f4e1f11528bf2c1f6cffac25793ece Mon Sep 17 00:00:00 2001 From: Fred Vuni Date: Thu, 26 Oct 2023 10:03:15 +0300 Subject: [PATCH] feat: set up the signin and create user routes --- routes/users.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/routes/users.js b/routes/users.js index 1773681..3ad5d13 100644 --- a/routes/users.js +++ b/routes/users.js @@ -1,11 +1,12 @@ const express = require("express") const router = express.Router() -const {getUsers,createUser,deleteUser} = require("../controllers/users") +const {getUsers,createUser,deleteUser,signIn} = require("../controllers/users") // const authenticate = require("../helpers/authenticate") router.get("/",getUsers) // router.get("/",authenticate,getUsers) -router.post("/",createUser) +router.post("/signup",createUser) +router.post("/signin",signIn) router.delete("/:id",deleteUser) module.exports = router \ No newline at end of file