From 854b5680de0cf2f2ac8be5c7e2e9efe89b530180 Mon Sep 17 00:00:00 2001 From: varun Date: Thu, 8 Jun 2023 07:15:57 -0400 Subject: [PATCH] test123 --- src/routes/tanksRoute.js | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/src/routes/tanksRoute.js b/src/routes/tanksRoute.js index d4b6ff77..6f465b77 100644 --- a/src/routes/tanksRoute.js +++ b/src/routes/tanksRoute.js @@ -328,46 +328,6 @@ module.exports = function (fastify, opts, next) { - - - fastify.route({ - method: "POST", - url: "/api/APIWrite", - schema: { - tags: ["Tank"], - description: "This is for creating an IOT Device", - summary: "this is to Create IOT Device", - body: { - type: "object", - properties: { - hardwareId: { type: "string" }, - mode: { type: "string" }, - tanks: { - type: "array", - items: { - type: "object", - properties: { - tankhardwareId: { type: "string" }, - tankHeight: { type: "string" }, - maxLevel: { type: "string" }, - minLevel: { type: "string" } - }, - required: ["tankhardwareId", "tankHeight", "maxLevel", "minLevel"] - } - } - }, - required: ["hardwareId", "mode", "tanks"] - }, - security: [ - { - basicAuth: [] - } - ] - }, - handler: tanksController.IotDevice - }); - - fastify.get("/api/APIRead", { schema: { tags: ["Tank"],