|
|
@ -311,6 +311,34 @@ fastify.get("/api/getBranchDetails", {
|
|
|
|
handler: adminController.getAllOffices,
|
|
|
|
handler: adminController.getAllOffices,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.put("/api/editTeamMember/:departmentId/:teamMemberId", {
|
|
|
|
|
|
|
|
schema: {
|
|
|
|
|
|
|
|
description: "Admin Edit Team Member",
|
|
|
|
|
|
|
|
tags: ["Admin"],
|
|
|
|
|
|
|
|
summary: "Admin Edit Team Member",
|
|
|
|
|
|
|
|
params: {
|
|
|
|
|
|
|
|
type: "object",
|
|
|
|
|
|
|
|
properties: {
|
|
|
|
|
|
|
|
departmentId: { type: "string", description: "departmentId" },
|
|
|
|
|
|
|
|
teamMemberId: { type: "string", description: "Team Member ID" }
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
required: ["departmentId", "teamMemberId"]
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
body: {
|
|
|
|
|
|
|
|
type: "object",
|
|
|
|
|
|
|
|
properties: {
|
|
|
|
|
|
|
|
firstName: { type: "string" },
|
|
|
|
|
|
|
|
phone: { type: "string" },
|
|
|
|
|
|
|
|
email: { type: "string" },
|
|
|
|
|
|
|
|
alternativePhone: { type: "string" },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handler: adminController.adminEditTeamMember
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getOfficeDetails/:officeName/:city", {
|
|
|
|
fastify.get("/api/getOfficeDetails/:officeName/:city", {
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Admin"],
|
|
|
|
tags: ["Admin"],
|
|
|
|