organize general routes

This commit is contained in:
Arjun Patel
2019-01-19 00:42:56 -08:00
parent 59c327d8df
commit fc2b73b715
18 changed files with 154 additions and 83 deletions
+2 -2
View File
@@ -3,11 +3,11 @@ const db = require('../config/db.config.js'),
jwt = require('jsonwebtoken'),
errorMaker = require('../helpers/error.maker');
const Donors = db.Donors;
const Donor = db.Donor;
// Find a Donor by email + login with JWT
exports.login = (req, res, next) => {
Donors.findAll({
Donor.findAll({
where: {
email: req.body.email
}