master^2
Bhaskar 4 weeks ago
parent 89e118dfb1
commit 18db7b391b

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

Loading…
Cancel
Save