Router modification #50
Answered
by
muttaqin1
bellaabdelouahab
asked this question in
Q&A
-
is this still good : const authRoutes = (mainrouter) => {
router.post("/signup", authController.signup);
router.post("/login", authController.login);
mainrouter.use("/auth", router);
}
module.exports = authRoutes; because I m trying to make the swagger and also fix code structure and i found that this is the best way |
Beta Was this translation helpful? Give feedback.
Answered by
muttaqin1
Jun 24, 2023
Replies: 2 comments 3 replies
-
Yeah, looks perfect 💯 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
got it thanks😁 @bellaabdelouahab