|
|
|
@ -145,6 +145,35 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
handler: createConnectionController.getConnections,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
fastify.route({
|
|
|
|
|
method: "PUT",
|
|
|
|
|
url: "/api/deleteTankConnections/:customerId",
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Tank"],
|
|
|
|
|
summary: "This is for delete tank connections",
|
|
|
|
|
params: {
|
|
|
|
|
required: ["customerId"],
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
customerId: {
|
|
|
|
|
type: "string",
|
|
|
|
|
description: "customerId",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
querystring: {
|
|
|
|
|
tankName: {type: 'string'}
|
|
|
|
|
},
|
|
|
|
|
security: [
|
|
|
|
|
{
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
handler: createConnectionController.deleteTankConnections,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|