Skip to content
Snippets Groups Projects
Commit f3ff77bf authored by alrwasheda's avatar alrwasheda :speech_balloon:
Browse files

deleteAccount route

parent 0c68bcf0
No related branches found
No related tags found
No related merge requests found
......@@ -33,9 +33,15 @@ accountsRouter.get(
//update account
accountsRouter.put(
"/api/accounts/:id/",
handleValidationResult,
handleValidationResult, //!! not working here
validateToken,
accountsControllers.updateAccount
);
//delete account
accountsRouter.delete(
"/api/accounts/:id/",
validateToken,
accountsControllers.deleteAccountById
)
export default accountsRouter;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment