From 6246f7885cc14d64737c1007a10843ba23be525b Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Mon, 21 Jul 2025 16:57:21 +0530 Subject: [PATCH 1/2] changes --- src/routes/departmentRoute.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/departmentRoute.js b/src/routes/departmentRoute.js index 0e9e02a8..af347635 100644 --- a/src/routes/departmentRoute.js +++ b/src/routes/departmentRoute.js @@ -696,7 +696,7 @@ module.exports = function (fastify, opts, next) { fastify.route({ method: "GET", - url: "/api/states/:stateName/cities", + url: "/api/states/cities/:stateName", schema: { tags: ["Department"], description: "Get the States by cities", From cba2ce57eafed1503fe385699f5b4fee77c035b4 Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Mon, 21 Jul 2025 17:06:50 +0530 Subject: [PATCH 2/2] changes --- src/routes/departmentRoute.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/departmentRoute.js b/src/routes/departmentRoute.js index af347635..15076d06 100644 --- a/src/routes/departmentRoute.js +++ b/src/routes/departmentRoute.js @@ -705,6 +705,7 @@ module.exports = function (fastify, opts, next) { type: "object", properties: { stateName: { type: "string" }, + }, }, },