|
|
|
@ -232,6 +232,22 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
handler: tankersController.getTanker,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getallTankers", {
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Supplier"],
|
|
|
|
|
description: "This is for Get all Tanker Data",
|
|
|
|
|
summary: "This is for to Get all Tanker Data",
|
|
|
|
|
|
|
|
|
|
security: [
|
|
|
|
|
{
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
handler: tankersController.getallTanker,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
fastify.route({
|
|
|
|
|
method: "POST",
|
|
|
|
|
url: "/api/addBores/:customerId",
|
|
|
|
|