post creation and adding ribbon functionality

This commit is contained in:
Arjun Patel
2019-04-12 11:51:33 -07:00
parent ee52f38d48
commit a43e1d8dfd
5 changed files with 100 additions and 3 deletions
+8 -1
View File
@@ -8,7 +8,8 @@ const {
grant,
stripe,
organization,
charge
charge,
post
} = require('../controllers');
// POST donor signup
@@ -54,6 +55,12 @@ router.get('/dashboard', checkAuth(roles.DONOR), donor.getDashboardData);
router.get('/charges', checkAuth(roles.DONOR), charge.getAllChargesbyDonor);
router.put(
'/statusupdate/ribbon/:update_id',
checkAuth(roles.DONOR),
post.addRibbon
);
// // Retrieve a single Donor by Id
// router.get('/:donor_id', donor.findById);