|
|
|
@ -266,6 +266,23 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
//preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
handler: departmentController.getallZonesData,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getalllocationsdata", {
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
description: "This is for Get all Locations Data",
|
|
|
|
|
summary: "This is for to Get all Locations Data",
|
|
|
|
|
|
|
|
|
|
security: [
|
|
|
|
|
{
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
//preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
handler: departmentController.getallLocationData,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
fastify.delete("/api/deletedepartment/:departmentId", {
|
|
|
|
|
schema: {
|
|
|
|
|
description: "Delete a Department by departmentId",
|
|
|
|
|