|
|
@ -96,6 +96,23 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
// handler: departmentController.getAllDepartmentsParticularFields,
|
|
|
|
// handler: departmentController.getAllDepartmentsParticularFields,
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getallcompanyNames", {
|
|
|
|
|
|
|
|
schema: {
|
|
|
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
|
|
|
description: "This is for Get all Company Name in city schema ",
|
|
|
|
|
|
|
|
summary: "This is for to Get all Company Name in city schema ",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
security: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
//preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
|
|
|
handler: departmentController.getallCompanyNames,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.delete("/api/deletecity/:cityId", {
|
|
|
|
fastify.delete("/api/deletecity/:cityId", {
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
description: "Delete a city by cityId",
|
|
|
|
description: "Delete a city by cityId",
|
|
|
|