|
|
@ -157,6 +157,56 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getalldeliveryboys/:supplierId", {
|
|
|
|
|
|
|
|
schema: {
|
|
|
|
|
|
|
|
tags: ["Supplier"],
|
|
|
|
|
|
|
|
description: "This is for Get all delivery boys under supplier",
|
|
|
|
|
|
|
|
summary: "This is for to Get all delivery boys under supplier",
|
|
|
|
|
|
|
|
params: {
|
|
|
|
|
|
|
|
required: ["supplierId"],
|
|
|
|
|
|
|
|
type: "object",
|
|
|
|
|
|
|
|
properties: {
|
|
|
|
|
|
|
|
supplierId: {
|
|
|
|
|
|
|
|
type: "string",
|
|
|
|
|
|
|
|
description: "supplierId",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
security: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
|
|
|
handler: supplierOrderController.getalldeliveryboysofsupplier,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getactivedeliveryboys/:supplierId", {
|
|
|
|
|
|
|
|
schema: {
|
|
|
|
|
|
|
|
tags: ["Supplier"],
|
|
|
|
|
|
|
|
description: "This is for Get all active delivery boys under supplier",
|
|
|
|
|
|
|
|
summary: "This is for to Get all active delivery boys under supplier",
|
|
|
|
|
|
|
|
params: {
|
|
|
|
|
|
|
|
required: ["supplierId"],
|
|
|
|
|
|
|
|
type: "object",
|
|
|
|
|
|
|
|
properties: {
|
|
|
|
|
|
|
|
supplierId: {
|
|
|
|
|
|
|
|
type: "string",
|
|
|
|
|
|
|
|
description: "supplierId",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
security: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
|
|
|
handler: supplierOrderController.getactivedeliveryboysofsupplier,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
next();
|
|
|
|
next();
|
|
|
|
}
|
|
|
|
}
|
|
|
|