Skip to content

Commit

Permalink
update auth part
Browse files Browse the repository at this point in the history
  • Loading branch information
nahyan0077 committed Aug 23, 2024
1 parent c465f8e commit f41ebcb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion auth-service/src/infrastructure/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export const routes = (dependancies: IDependancies) => {

router.route("/google-auth").post(googleAuth);

router.route("/getUser").get(CurrentUser, RequireAuth, getUser);
router.route("/getUser").get(getUser);
// router.route("/getUser").get(CurrentUser, RequireAuth, getUser);

router.route("/forgot-password-mail").post(forgotPasswordMail);

Expand Down
5 changes: 4 additions & 1 deletion course-service/src/infrastructure/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ export const routes = (dependancies: IDependencies) => {
router.route("/enrollment").post(CurrentUser, RequireAuth, createEnrollment);
router
.route("/enrollment/user/:userId")
.get(CurrentUser, RequireAuth, getEnrollmentByUserId);
.get(getEnrollmentByUserId);
// router
// .route("/enrollment/user/:userId")
// .get(CurrentUser, RequireAuth, getEnrollmentByUserId);
router
.route("/enrollment/:id")
.get(CurrentUser, RequireAuth, getEnrollmentById);
Expand Down

0 comments on commit f41ebcb

Please sign in to comment.