const { AddDrivers, getAllDrivers, getDriverDatabyId, updateDriver, changeStatusOfDriver, 
  getAllActiveDrivers, getAllVerifiedActiveDrivers, getAssignedRoutesByDriver, 
  acceptAssignedInstallationsByDriver, getAcceptedRoutesByDriver, cancelAssignedRouteByDriver, 
  getDriverDatabyUserId, getDeliveredRoutesByDriver, getFailedRoutesByDriver,sendOtpToDriver,
  resetDriverPassword } = require("../controllers/driver");


const driverRoute=[
  {
    method: "POST",
    url: "/webservice/driver/add",
    handler: AddDrivers,
  },
  {
    method: "POST",
    url: "/webservice/driver/get-all-drivers",
    handler: getAllDrivers,
  },
  {
    method: "POST",
    url: "/webservice/driver/get-driver-byid",
    handler: getDriverDatabyId,
  },
  {
    method: "POST",
    url: "/webservice/driver/get-driver-by-userId",
    handler: getDriverDatabyUserId,
  },
  {
    method: "POST",
    url: "/webservice/driver/update",
    handler: updateDriver,
  },
  {
    method: "POST",
    url: "/webservice/driver/change-status",
    handler: changeStatusOfDriver,
  },
  {
    method: "POST",
    url: "/webservice/driver/get-active-drivers",
    handler: getAllActiveDrivers,
  },
  {
    method: "POST",
    url: "/webservice/driver/get-all-verified-active-drivers",
    handler: getAllVerifiedActiveDrivers,
  },
  {
    method: "POST",
    url: "/webservice/driver/get-assigned-routes-by-driver",
    handler: getAssignedRoutesByDriver,
  },
  {
    method: "POST",
    url: "/webservice/driver/get-accepted-routes-by-driver",
    handler: getAcceptedRoutesByDriver,
  },
  {
    method: "POST",
    url: "/webservice/driver/get-delivered-routes-by-driver",
    handler: getDeliveredRoutesByDriver,
  },
  {
    method: "POST",
    url: "/webservice/driver/get-failed-routes-by-driver",
    handler: getFailedRoutesByDriver,
  },
  {
    method: "POST",
    url: "/webservice/driver/accept-installations-in-assigned-route",
    handler: acceptAssignedInstallationsByDriver,
  },
  {
    method: "POST",
    url: "/webservice/driver/cancel-assigned-route",
    handler: cancelAssignedRouteByDriver,
  },
  {
    method: "POST",
    url: "/webservice/driver/send-otp-to-driver",
    handler: sendOtpToDriver,
  },
  {
    method: "POST",
    url: "/webservice/driver/update-driver-password",
    handler: resetDriverPassword,
  },
]

module.exports = driverRoute