ashok 3 months ago
commit fab755d076

@ -1123,21 +1123,22 @@ fastify.get("/api/cart/:customerId", {
fastify.route({
method: "POST",
fastify.route({
method: "GET",
url: "/api/getuserOrders/:customerId",
schema: {
description: "To Get orders of customer",
tags: ["User"],
summary: "This is for Geting orders of customer",
summary: "This is for getting orders of a customer",
params: {
type: "object",
properties: {
customerId: {
type: "string",
description: "customerId",
description: "Customer ID",
},
},
required: ["customerId"]
},
security: [
{
@ -1145,9 +1146,10 @@ fastify.get("/api/cart/:customerId", {
},
],
},
//preHandler: fastify.auth([fastify.authenticate]),
// preHandler: fastify.auth([fastify.authenticate]),
handler: userController.getuserOrders,
});
});
next();

Loading…
Cancel
Save