Skip to content

Commit

Permalink
chore: remove no needed code
Browse files Browse the repository at this point in the history
  • Loading branch information
Behzad-rabiei committed Dec 4, 2024
1 parent 308d8c8 commit 446fe21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/v1/module.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ const router = express.Router();
router
.route('/')
.post(auth('admin'), validate(moduleValidation.createModule), moduleController.createModule)
.get(auth('admin'), validate(moduleValidation.getModules), moduleController.getModules);
.get(auth('admin', 'view'), validate(moduleValidation.getModules), moduleController.getModules);

router
.route('/:moduleId')
.get(auth('admin', 'view'), validate(moduleValidation.getModule), moduleController.getModule)
.get(auth('admin'), validate(moduleValidation.getModule), moduleController.getModule)
.patch(auth('admin'), validate(moduleValidation.dynamicModuleUpdate), moduleController.updateModule)
.delete(auth('admin'), validate(moduleValidation.deleteModule), moduleController.deleteModule);

Expand Down

0 comments on commit 446fe21

Please sign in to comment.