const { getAllDepartments, getDepartmentById, addDepartment, editDepartment, deleteDepartment } = require("../controllers/departments");

const departmentRoutes = [
  {
    method: "POST",
    url: "/webservice/departments/get-all-departments",
    handler: getAllDepartments,
  },
  {
    method: "POST",
    url: "/webservice/departments/get-department-by-id",
    handler: getDepartmentById,
  },
  {
    method: "POST",
    url: "/webservice/departments/add-department",
    handler: addDepartment,
  },
  {
    method: "POST",
    url: "/webservice/departments/edit-department",
    handler: editDepartment,
  },
  {
    method: "POST",
    url: "/webservice/departments/delete-department",
    handler: deleteDepartment,
  },
];

module.exports = departmentRoutes;
