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

update boatType by id route

parent 163f3062
No related branches found
No related tags found
No related merge requests found
......@@ -37,4 +37,14 @@ boatTypeRouter.get(
boatTypeControllers.showBoatTypeById
);
//update boattype by id
boatTypeRouter.patch(
"/api/boattype/:id/",
body("name").if(body("name").exists()).not().isEmpty(),
body("seats").if(body("seats").exists()).isInt(),
handleValidationResult,
validateToken,
boatTypeControllers.updateBoatTypeById
)
export default boatTypeRouter;
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