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, });