Base methods for Donors model

This commit is contained in:
Arjun Patel
2019-01-04 16:07:58 -08:00
parent 2c9aed9952
commit e6f7fecd6d
5 changed files with 50 additions and 41 deletions
+5 -5
View File
@@ -1,6 +1,6 @@
module.exports = function(app) {
const donors = require('../controller/donors.controller.js');
const donors = require('../controllers/donors.controller.js');
// Create a new Donor
app.post('/api/donors', donors.create);
@@ -10,10 +10,10 @@ module.exports = function(app) {
// Retrieve a single Donor by Id
app.get('/api/donors/:DonorId', donors.findById);
// Update a Donor with Id
app.put('/api/donors/:DonorId', donors.update);
// Delete a Donor with Id
app.delete('/api/donors/:DonorId', donors.delete);
// // Update a Donor with Id
// app.put('/api/donors/:DonorId', donors.update);
}