|
|
|
@ -1221,6 +1221,27 @@ fastify.route({
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.route({
|
|
|
|
|
method: "GET",
|
|
|
|
|
url: "/api/getuserRequestbookingsforplansforcustomer/:customerId",
|
|
|
|
|
schema: {
|
|
|
|
|
description: "Fetch plans of the customer",
|
|
|
|
|
tags: ["Supplier"],
|
|
|
|
|
summary: "Fetch plans of the customer",
|
|
|
|
|
params: {
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
customerId: { type: "string", description: "customerId" },
|
|
|
|
|
},
|
|
|
|
|
required: ["customerId"],
|
|
|
|
|
},
|
|
|
|
|
security: [{ basicAuth: [] }],
|
|
|
|
|
},
|
|
|
|
|
// preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
handler: userController.getuserRequestbookingsforplansforcustomer,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.route({
|
|
|
|
|
method: "POST",
|
|
|
|
|