Skip to content

Commit

Permalink
disabled update features in team, projects, users (dsckiet#15)
Browse files Browse the repository at this point in the history
disabled update features in team, projects, users
  • Loading branch information
rhnmht30 authored Oct 2, 2019
2 parents 7fe709d + 4c7a5d2 commit fe46b1a
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 @@ -22,13 +22,13 @@ router.get("/", projects);
// add a project
router.post("/add", adminAuth, upload.any(), projectValidation, 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 fe46b1a

Please sign in to comment.