|
|
@ -74,6 +74,25 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
handler: installationController.getTeamMembers
|
|
|
|
handler: installationController.getTeamMembers
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getAllInstallers/:departmentName", {
|
|
|
|
|
|
|
|
schema: {
|
|
|
|
|
|
|
|
description: "Get All Installtion list",
|
|
|
|
|
|
|
|
tags: ["Installation"],
|
|
|
|
|
|
|
|
summary: "Get All Installtion list",
|
|
|
|
|
|
|
|
params: {
|
|
|
|
|
|
|
|
type: "object",
|
|
|
|
|
|
|
|
properties: {
|
|
|
|
|
|
|
|
departmentName: {
|
|
|
|
|
|
|
|
type: "string",
|
|
|
|
|
|
|
|
description: "departmentName to fetch Installation list"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
required: ["departmentName"]
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handler: installationController.getAllInstallers
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
fastify.put("/api/editTeamMember/:installationId/:teamMemberId", {
|
|
|
|
fastify.put("/api/editTeamMember/:installationId/:teamMemberId", {
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
description: "Update an existing team member's details",
|
|
|
|
description: "Update an existing team member's details",
|
|
|
|