|
|
|
@ -272,6 +272,34 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
//onResponse: validationHandler.sendPhoneVerificationCode,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getTankersBookingdetails/:customerId", {
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Supplier"],
|
|
|
|
|
description: "This is for Get Tanker Booking Data",
|
|
|
|
|
summary: "This is for to Get Tanker Booking Data",
|
|
|
|
|
params: {
|
|
|
|
|
required: ["customerId"],
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
customerId: {
|
|
|
|
|
type: "string",
|
|
|
|
|
description: "customerId",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
querystring: {
|
|
|
|
|
tankerName: {type: 'string'}
|
|
|
|
|
},
|
|
|
|
|
security: [
|
|
|
|
|
{
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
handler: tankersController.getTankersBookingdetails,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getBores", {
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Supplier"],
|
|
|
|
|