|
|
|
@ -1152,5 +1152,32 @@ fastify.route({
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.route({
|
|
|
|
|
method: "GET",
|
|
|
|
|
url: "/api/getuserRequestbookings/:customerId",
|
|
|
|
|
schema: {
|
|
|
|
|
description: "To Get requestbookings of customer",
|
|
|
|
|
tags: ["User"],
|
|
|
|
|
summary: "This is for getting requestbookings of a customer",
|
|
|
|
|
params: {
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
customerId: {
|
|
|
|
|
type: "string",
|
|
|
|
|
description: "Customer ID",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
required: ["customerId"]
|
|
|
|
|
},
|
|
|
|
|
security: [
|
|
|
|
|
{
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
// preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
handler: userController.getuserRequestbookings,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
next();
|
|
|
|
|
};
|
|
|
|
|