From e4a08025504b6200303bc9950342ac609bca223a Mon Sep 17 00:00:00 2001 From: ritik srivastava Date: Tue, 1 Oct 2019 17:15:32 +0530 Subject: [PATCH] disabled update features in team, projects, users --- routes/api/v1/projects.js | 14 +++++++------- routes/api/v1/team.js | 14 +++++++------- routes/api/v1/users.js | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/routes/api/v1/projects.js b/routes/api/v1/projects.js index 552a12c..664168f 100644 --- a/routes/api/v1/projects.js +++ b/routes/api/v1/projects.js @@ -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 diff --git a/routes/api/v1/team.js b/routes/api/v1/team.js index 74df63d..114ea5e 100644 --- a/routes/api/v1/team.js +++ b/routes/api/v1/team.js @@ -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 diff --git a/routes/api/v1/users.js b/routes/api/v1/users.js index a272720..6c6365e 100644 --- a/routes/api/v1/users.js +++ b/routes/api/v1/users.js @@ -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