From 188ff245fa72611361ea8160964a84b2062fad51 Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Fri, 29 Aug 2025 12:49:53 +0530 Subject: [PATCH] changes --- src/routes/departmentRoute.js | 20 ++++++++++---------- src/routes/installationRoute.js | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/routes/departmentRoute.js b/src/routes/departmentRoute.js index eae2c014..cc51a3ee 100644 --- a/src/routes/departmentRoute.js +++ b/src/routes/departmentRoute.js @@ -6,7 +6,7 @@ module.exports = function (fastify, opts, next) { method: "POST", url: "/api/citySignup", schema: { - tags: ["Department"], + tags: ["Admin"], description: "This is for creating a new City account", summary: "This is for creating a new City account", body: { @@ -104,7 +104,7 @@ module.exports = function (fastify, opts, next) { fastify.get("/api/getallcompanyNames", { schema: { - tags: ["Department"], + tags: ["Admin"], description: "This is for Get all Company Name in city schema ", summary: "This is for to Get all Company Name in city schema ", @@ -212,7 +212,7 @@ fastify.route({ method: "PUT", url: "/api/updateBranchOrCompanydetails/:id", schema: { - tags: ["Department"], + tags: ["Admin"], description: "Update details of a branch or city", summary: "Edit department details by branchId or cityId", params: { @@ -549,7 +549,7 @@ fastify.route({ method: "GET", url: "/api/zonebasedcity/:city/:officeName", schema: { - tags: ["Department"], + tags: ["Admin"], description: "Get the zones by city and office", summary: "Get the zones by city and office", params: { @@ -621,7 +621,7 @@ fastify.route({ method: "GET", url: "/api/departmentNamebaselist/:officeName/:city/:departmentName/:employeeType", schema: { - tags: ["Department"], + tags: ["Admin"], description: "Department name based list", summary: "Department name based list", params: { @@ -658,7 +658,7 @@ fastify.route({ method: "POST", url: "/api/branchSignup", schema: { - tags: ["Department"], + tags: ["Admin"], description: "This is for creating a new Branch account", summary: "This is for creating a new Branch account", body: { @@ -699,7 +699,7 @@ fastify.route({ method: "POST", url: "/api/zoneSignup", schema: { - tags: ["Department"], + tags: ["Admin"], description: "This is for creating a new Zone account", summary: "This is for creating a new Zone account", body: { @@ -784,7 +784,7 @@ fastify.route({ fastify.get("/api/getCitiesByOfficeName/:officeName", { schema: { - tags: ["Department"], + tags: ["Admin"], description: "This is for Get cities by OfficeName Data", summary: "This is to Get cities by OfficeName Data", params: { @@ -810,7 +810,7 @@ fastify.route({ method: "GET", url: "/api/departmentNameList/:city/:officeName", schema: { - tags: ["Department"], + tags: ["Admin"], description: "Get a list of department names for a given city", summary: "Department names by city", params: { @@ -888,7 +888,7 @@ fastify.route({ method: "GET", url: "/api/staffdepartments/:officeName/:city", schema: { - tags: ["Department"], + tags: ["Admin"], description: "This is for fetching department details based on officeName and city", summary: "This is for fetching department details based on officeName and city", params: { diff --git a/src/routes/installationRoute.js b/src/routes/installationRoute.js index dbaf6976..49e5967a 100644 --- a/src/routes/installationRoute.js +++ b/src/routes/installationRoute.js @@ -88,7 +88,7 @@ fastify.get("/api/getAllDepartments/:officeName/:city", { fastify.get("/api/getTeamMembers/:officeName/:city/:departmentId", { schema: { description: "Get all team members under a specific department", - tags: ["Department"], + tags: ["Admin"], summary: "Get Team Members by Department ID", params: { type: "object",