|
|
|
@ -62,21 +62,21 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
// handler: departmentController.getSinledepartmentData,
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getallcities", {
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
description: "This is for Get all cities Data",
|
|
|
|
|
summary: "This is for to Get all cities Data",
|
|
|
|
|
// fastify.get("/api/getallcities", {
|
|
|
|
|
// schema: {
|
|
|
|
|
// tags: ["Department"],
|
|
|
|
|
// description: "This is for Get all cities Data",
|
|
|
|
|
// summary: "This is for to Get all cities Data",
|
|
|
|
|
|
|
|
|
|
security: [
|
|
|
|
|
{
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
//preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
handler: departmentController.getallcities,
|
|
|
|
|
});
|
|
|
|
|
// security: [
|
|
|
|
|
// {
|
|
|
|
|
// basicAuth: [],
|
|
|
|
|
// },
|
|
|
|
|
// ],
|
|
|
|
|
// },
|
|
|
|
|
// //preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
// handler: departmentController.getallcities,
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// fastify.get("/api/getalldepartmentsParticularFileds", {
|
|
|
|
@ -236,6 +236,36 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
handler: departmentController.getalldepartments,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getallcitiesdata", {
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
description: "This is for Get all Cities Data",
|
|
|
|
|
summary: "This is for to Get all Cities Data",
|
|
|
|
|
|
|
|
|
|
security: [
|
|
|
|
|
{
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
//preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
handler: departmentController.getallCitiesData,
|
|
|
|
|
});
|
|
|
|
|
fastify.get("/api/getallzonesdata", {
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
description: "This is for Get all Zones Data",
|
|
|
|
|
summary: "This is for to Get all Zones Data",
|
|
|
|
|
|
|
|
|
|
security: [
|
|
|
|
|
{
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
//preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
handler: departmentController.getallZonesData,
|
|
|
|
|
});
|
|
|
|
|
fastify.delete("/api/deletedepartment/:departmentId", {
|
|
|
|
|
schema: {
|
|
|
|
|
description: "Delete a Department by departmentId",
|
|
|
|
|