From 18db7b391b3b60bde4c2bd0ab3d9aa3dc90f6a44 Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Tue, 9 Sep 2025 15:20:34 +0530 Subject: [PATCH] changes --- src/routes/installationRoute.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/routes/installationRoute.js b/src/routes/installationRoute.js index cd46810f..9c06e1bd 100644 --- a/src/routes/installationRoute.js +++ b/src/routes/installationRoute.js @@ -764,7 +764,7 @@ fastify.post( }, handler: installationController.getIotDataByCustomer, }); - fastify.get("/api/getsinglemasterlistwithslaves/:customerId", { + fastify.get("/api/getsinglemasterlistwithslaves/:customerId/:hardwareId", { schema: { description: "Get single check masrter connected slave data", tags: ["Installation"], @@ -777,6 +777,14 @@ fastify.post( }, required: [ "customerId"], }, + // querystring: { // ✅ allow customerId in query string + // type: 'object', + // required: ['customerId'], + // properties: { + // customerId: { type: 'string' }, + // hardwareId: { type: "string" }, + // } + // } }, handler: installationController.getIotDataByCustomerAndHardwareId, });