|
|
|
@ -175,8 +175,38 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
},
|
|
|
|
|
handler: departmentController.editcity,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.route({
|
|
|
|
|
method: "GET",
|
|
|
|
|
url: "/api/city/:cityId",
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
description: "This is for fetching a City details",
|
|
|
|
|
summary: "This is for fetching a City details",
|
|
|
|
|
params: {
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
cityId: { type: "string" }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handler: departmentController.getCityDetails
|
|
|
|
|
});
|
|
|
|
|
fastify.route({
|
|
|
|
|
method: "GET",
|
|
|
|
|
url: "/api/branch/:branchId",
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
description: "This is for fetching a Branch details",
|
|
|
|
|
summary: "This is for fetching a Branch details",
|
|
|
|
|
params: {
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
branchId: { type: "string" }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handler: departmentController.getBranchDetails
|
|
|
|
|
});
|
|
|
|
|
fastify.route({
|
|
|
|
|
method: "POST",
|
|
|
|
|
url: "/api/departmentSignup",
|
|
|
|
|