Base methods for Donors model
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user