const {
  AddVehicles,
  getAllVehicles,
  getVehicleById,
  updateVehicle,
  deleteVehicle,
} = require("../controllers/vehicle");

const VehicleRoute = [
  {
    method: "POST",
    url: "/webservice/vehicle/add",
    handler: AddVehicles,
  },
  {
    method: "POST",
    url: "/webservice/vehicle/get-all-vehicle",
    handler: getAllVehicles,
  },
  {
    method: "POST",
    url: "/webservice/vehicle/get-data-byid",
    handler: getVehicleById,
  },
  {
    method: "POST",
    url: "/webservice/vehicle/update",
    handler: updateVehicle,
  },
  {
    method: "POST",
    url: "/webservice/vehicle/delete",
    handler: deleteVehicle,
  },
];

module.exports = VehicleRoute;
