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