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

updateAccountById Route

parent ef0f7198
No related branches found
No related tags found
No related merge requests found
......@@ -29,5 +29,13 @@ accountsRouter.get(
"/api/accounts/:id/",
validateToken,
accountsControllers.showAccountById
)
);
//update account
accountsRouter.put(
"/api/accounts/:id/",
handleValidationResult,
validateToken,
accountsControllers.updateAccount
);
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