post creation and adding ribbon functionality
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -9,7 +9,8 @@ const {
|
||||
region,
|
||||
stripe,
|
||||
project,
|
||||
image
|
||||
image,
|
||||
post
|
||||
} = require('../controllers');
|
||||
|
||||
// Charity signup route
|
||||
@@ -34,6 +35,12 @@ router.get(
|
||||
|
||||
router.post('/project', checkAuth(roles.ORGANIZATION), project.createProject);
|
||||
|
||||
router.post(
|
||||
'/statusupdate',
|
||||
checkAuth(roles.ORGANIZATION),
|
||||
post.createStatusUpdate
|
||||
);
|
||||
|
||||
// // Add cause
|
||||
// router.post('/cause', checkAuth(roles.ORGANIZATION), cause.createCause);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user