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

deleteBoatById route

parent 661f2cae
No related branches found
No related tags found
No related merge requests found
import { Router } from "express";
import validateToken from "../middleware/validateToken";
import boatControllers from "../controllers/boatControllers.controllers";
import handleValidationResult from "../middleware/handleValidationResult";
const boatsRouter = Router();
boatsRouter.get("/api/boat/", boatControllers.showAllBoatsController);
boatsRouter.get("/api/boat/:id", boatControllers.showBoatById);
boatsRouter.delete(
"/api/boat/:id",
validateToken,
boatControllers.deleteBoatById
);
export default boatsRouter;
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