condensing the controllers for accessing each model separately

This commit is contained in:
Arjun Patel
2019-03-17 00:13:40 -07:00
parent 5587c296e4
commit 6306d3b1a7
27 changed files with 360 additions and 402 deletions
+2 -5
View File
@@ -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;