Files
Ucharify_api/app/routes/donors.route.js
T

19 lines
510 B
JavaScript

module.exports = function(app) {
const donors = require('../controller/donors.controller.js');
// Create a new Donor
app.post('/api/donors', donors.create);
// Retrieve all Donor
app.get('/api/donors', donors.findAll);
// 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);
}