const endpointPrefix = "/api/user/driver"

export const driverEndpoints = {
  search: endpointPrefix + "/search",
  toggleActive: (id: string | number) => `${endpointPrefix}/active/${id}`,
  details: (id: string | number) => `${endpointPrefix}/details/${id}`,
  departmentName : (id : string | number) => `${endpointPrefix}/driver-department/${id}`,
  create: endpointPrefix,
  update: (id: string | number) => `${endpointPrefix}/edit/${id}`,
  export: endpointPrefix + "/export",
  active : endpointPrefix + "/active",
  planning: endpointPrefix + "/all-drivers-planning",
  autocomplete: endpointPrefix + "/autocomplete",
  allDrivers: endpointPrefix + "/allDrivers",
  allShorts: endpointPrefix + "/all-shorts"
};