condensing the controllers for accessing each model separately
This commit is contained in:
@@ -3,13 +3,10 @@ const express = require('express'),
|
||||
checkAuth = require('../middleware/check-auth'),
|
||||
roles = require('../helpers/roles');
|
||||
|
||||
const controllers = require('../controllers/admin');
|
||||
const { organization } = require('../controllers');
|
||||
|
||||
// Manual verification of a charity
|
||||
// TODO: Add checkAuth(roles.ADMIN) back into middleware
|
||||
router.put(
|
||||
'/org/:charity_id',
|
||||
controllers.organization.verifyOrg
|
||||
);
|
||||
router.put('/org/:charity_id', organization.verifyCharity);
|
||||
|
||||
module.exports = router;
|
||||
|
||||
Reference in New Issue
Block a user