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
+1 -1
View File
@@ -2,7 +2,7 @@ const express = require('express'),
router = express.Router(),
checkAuth = require('../middleware/check-auth');
const auth = require('../controllers/auth.controller.js');
const { auth } = require('../controllers');
// Check database for donor and get token with donor role
router.post('/donor/login', auth.donorLogin);