Skip to content

Commit

Permalink
disabled update features in team, projects, users
Browse files Browse the repository at this point in the history
  • Loading branch information
ritiksr25 committed Oct 1, 2019
1 parent 9600465 commit e4a0802
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions routes/api/v1/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ router.post(
addProject
);
// update a project
router.post(
'/update/:id',
adminAuth,
projectValidation,
upload.single('file'),
updateProject
);
// router.post(
// '/update/:id',
// adminAuth,
// projectValidation,
// upload.single('file'),
// updateProject
// );
// delete a project
router.get('/delete/:id', adminAuth, deleteProject);
// view a project
Expand Down
14 changes: 7 additions & 7 deletions routes/api/v1/team.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ router.post(
addTeamMember
);
// update team member
router.post(
'/update/:id',
adminAuth,
teamValidation,
upload.single('file'),
updateTeamMember
);
// router.post(
// '/update/:id',
// adminAuth,
// teamValidation,
// upload.single('file'),
// updateTeamMember
// );
// delete team member
router.get('/delete/:id', adminAuth, deleteTeamMember);
//view a team member
Expand Down
2 changes: 1 addition & 1 deletion routes/api/v1/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ router.get('/', adminAuth, users);
// add a user
router.post('/add', adminAuth, userValidation, addUser);
// update a user
router.post('/update/:id', adminAuth, userValidation, updateUser);
// router.post('/update/:id', adminAuth, userValidation, updateUser);
// delete a user
router.get('/delete/:id', adminAuth, deleteUser);
// view a user
Expand Down

0 comments on commit e4a0802

Please sign in to comment.