Skip to content

Commit

Permalink
Update orgRoutes.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ExtranoDev authored Sep 22, 2023
1 parent 5584905 commit 8947626
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion routes/orgRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ const {
updateOrgDetails,
} = require('../controllers/organizationController');

const {
createOrgAndUser
} = require('../controllers/authController');

// admin user middleware to block non admin from accessing the follow routes


router.post('/confirm-invite', confirmInviteCode);
router.post('/create', createOrganization);
router.post('/create', createOrgAndUser);

router.use(auth);
router.use(adminUser);
Expand Down

0 comments on commit 8947626

Please sign in to comment.