Varun 3 weeks ago
commit d80e2caac5

@ -764,7 +764,7 @@ fastify.post(
}, },
handler: installationController.getIotDataByCustomer, handler: installationController.getIotDataByCustomer,
}); });
fastify.get("/api/getsinglemasterlistwithslaves/:customerId", { fastify.get("/api/getsinglemasterlistwithslaves/:customerId/:hardwareId", {
schema: { schema: {
description: "Get single check masrter connected slave data", description: "Get single check masrter connected slave data",
tags: ["Installation"], tags: ["Installation"],
@ -777,6 +777,14 @@ fastify.post(
}, },
required: [ "customerId"], required: [ "customerId"],
}, },
// querystring: { // ✅ allow customerId in query string
// type: 'object',
// required: ['customerId'],
// properties: {
// customerId: { type: 'string' },
// hardwareId: { type: "string" },
// }
// }
}, },
handler: installationController.getIotDataByCustomerAndHardwareId, handler: installationController.getIotDataByCustomerAndHardwareId,
}); });

Loading…
Cancel
Save