diff --git a/src/routes/rent/rentRouter.ts b/src/routes/rent/rentRouter.ts index 3cad5bb..c8da831 100644 --- a/src/routes/rent/rentRouter.ts +++ b/src/routes/rent/rentRouter.ts @@ -12,7 +12,7 @@ RentRouter.route("/affected").get(UserGuard); RentRouter.route("/affected/all").get(AdminGuard); // Add a new vehicle (admin only) -RentRouter.route("/veh/new").post(AdminGuard); +RentRouter.route("/veh/new").post(AdminGuard, VehicleController.create); // Get all vehicles RentRouter.route("/veh/all").get(VehicleController.getAll);