Skip to content

Commit

Permalink
Fix small bug in skill protected routes
Browse files Browse the repository at this point in the history
  • Loading branch information
MAES-Pyramids committed Sep 11, 2023
1 parent 021b093 commit 88d8dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/skill.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ router
.get('/', skillController.getAllSkills)
.get('/:id', skillController.getSkill);

app.use(isLogin);
router.use(isLogin);
router.use(authController.restrictTo('admin'));
router
.post('/', skillController.createSkill)
Expand Down

0 comments on commit 88d8dc6

Please sign in to comment.