|
|
@ -104,6 +104,57 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getsupplierbookings/:supplierId", {
|
|
|
|
|
|
|
|
schema: {
|
|
|
|
|
|
|
|
tags: ["Supplier"],
|
|
|
|
|
|
|
|
description: "This is for Get supplier bookings Data",
|
|
|
|
|
|
|
|
summary: "This is for to Get supplier bookings Data",
|
|
|
|
|
|
|
|
params: {
|
|
|
|
|
|
|
|
required: ["supplierId"],
|
|
|
|
|
|
|
|
type: "object",
|
|
|
|
|
|
|
|
properties: {
|
|
|
|
|
|
|
|
supplierId: {
|
|
|
|
|
|
|
|
type: "string",
|
|
|
|
|
|
|
|
description: "supplierId",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
security: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
|
|
|
handler: supplierOrderController.getbookingsofsupplier,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getdeliveryboybookings/:agent_mobile", {
|
|
|
|
|
|
|
|
schema: {
|
|
|
|
|
|
|
|
tags: ["Supplier"],
|
|
|
|
|
|
|
|
description: "This is for Get delivery bookings Data",
|
|
|
|
|
|
|
|
summary: "This is for to Get delivery bookings Data",
|
|
|
|
|
|
|
|
params: {
|
|
|
|
|
|
|
|
required: ["agent_mobile"],
|
|
|
|
|
|
|
|
type: "object",
|
|
|
|
|
|
|
|
properties: {
|
|
|
|
|
|
|
|
agent_mobile: {
|
|
|
|
|
|
|
|
type: "string",
|
|
|
|
|
|
|
|
description: "agent_mobile",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
security: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
|
|
|
handler: supplierOrderController.getbookingsofdeliveryboy,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
next();
|
|
|
|
next();
|
|
|
|
}
|
|
|
|
}
|
|
|
|