|
|
@ -822,5 +822,24 @@ fastify.route({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handler:departmentController.getCitiesBasedState
|
|
|
|
handler:departmentController.getCitiesBasedState
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.route({
|
|
|
|
|
|
|
|
method: "GET",
|
|
|
|
|
|
|
|
url: "/api/staffdepartments/:officeName/:city",
|
|
|
|
|
|
|
|
schema: {
|
|
|
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
|
|
|
description: "This is for fetching department details based on officeName and city",
|
|
|
|
|
|
|
|
summary: "This is for fetching department details based on officeName and city",
|
|
|
|
|
|
|
|
params: {
|
|
|
|
|
|
|
|
type: "object",
|
|
|
|
|
|
|
|
properties: {
|
|
|
|
|
|
|
|
officeName: { type: "string" },
|
|
|
|
|
|
|
|
city: { type: "string" }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handler: departmentController.getStaffDepartmentDetails
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
next();
|
|
|
|
next();
|
|
|
|
};
|
|
|
|
};
|