|
|
@ -700,6 +700,35 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
handler: tankersController.getAllTankersaccepted,
|
|
|
|
handler: tankersController.getAllTankersaccepted,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.route({
|
|
|
|
|
|
|
|
method: "PUT",
|
|
|
|
|
|
|
|
url: "/api/deleteBookingInfo/:bookingid",
|
|
|
|
|
|
|
|
schema: {
|
|
|
|
|
|
|
|
tags: ["Supplier-Order"],
|
|
|
|
|
|
|
|
summary: "This is for delete Booking Info",
|
|
|
|
|
|
|
|
params: {
|
|
|
|
|
|
|
|
required: ["bookingid"],
|
|
|
|
|
|
|
|
type: "object",
|
|
|
|
|
|
|
|
properties: {
|
|
|
|
|
|
|
|
bookingid: {
|
|
|
|
|
|
|
|
type: "string",
|
|
|
|
|
|
|
|
description: "bookingid",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
security: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
|
|
|
handler: tankersController.deleteBookingInfo,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
next();
|
|
|
|
next();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|