|
|
|
@ -157,8 +157,8 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
url: "/api/departmentSignup",
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
description: "This is for creating a new Department Account",
|
|
|
|
|
summary: "This is for creating a new Department Account",
|
|
|
|
|
description: "This is for creating a new Team Member Account",
|
|
|
|
|
summary: "This is for creating a new Ream Member Account",
|
|
|
|
|
body: {
|
|
|
|
|
type: "object",
|
|
|
|
|
//required: ["phone", "username", "password", "role"], // Add role to required fields
|
|
|
|
@ -239,8 +239,8 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
fastify.get("/api/getallcitiesdata", {
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
description: "This is for Get all Cities Data",
|
|
|
|
|
summary: "This is for to Get all Cities Data",
|
|
|
|
|
description: "This is for Get all Cities Data for City Schema",
|
|
|
|
|
summary: "This is for to Get all Cities Data for City Schema",
|
|
|
|
|
|
|
|
|
|
security: [
|
|
|
|
|
{
|
|
|
|
@ -254,8 +254,8 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
fastify.get("/api/getallzonesdata", {
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
description: "This is for Get all Zones Data",
|
|
|
|
|
summary: "This is for to Get all Zones Data",
|
|
|
|
|
description: "This is for Get all Zones Data for City Schema",
|
|
|
|
|
summary: "This is for to Get all Zones Data for City Schema",
|
|
|
|
|
|
|
|
|
|
security: [
|
|
|
|
|
{
|
|
|
|
@ -266,6 +266,23 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
//preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
handler: departmentController.getallZonesData,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getalllocationsdata", {
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
description: "This is for Get all Locations Data for City Schema",
|
|
|
|
|
summary: "This is for to Get all Locations Data for City Schema",
|
|
|
|
|
|
|
|
|
|
security: [
|
|
|
|
|
{
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
//preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
handler: departmentController.getallLocationData,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
fastify.delete("/api/deletedepartment/:departmentId", {
|
|
|
|
|
schema: {
|
|
|
|
|
description: "Delete a Department by departmentId",
|
|
|
|
|