|
|
|
@ -610,6 +610,34 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
handler: tankersController.connectionStatus
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getConnectStatus/:customerId", {
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Supplier"],
|
|
|
|
|
description: "This is to get connect status",
|
|
|
|
|
summary: "This is to get connect status",
|
|
|
|
|
params: {
|
|
|
|
|
required: ["customerId"],
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
customerId: {
|
|
|
|
|
type: "string",
|
|
|
|
|
description: "customerId",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
querystring: {
|
|
|
|
|
supplierId: {type: 'string'}
|
|
|
|
|
},
|
|
|
|
|
security: [
|
|
|
|
|
{
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
handler: tankersController.connectstatus,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
next();
|
|
|
|
|
}
|
|
|
|
|