|
|
|
@ -1683,5 +1683,29 @@ fastify.post("/api/acceptquotation/:quotationId", {
|
|
|
|
// preHandler: fastify.auth([fastify.authenticate]), // Uncomment if authentication is needed
|
|
|
|
// preHandler: fastify.auth([fastify.authenticate]), // Uncomment if authentication is needed
|
|
|
|
handler: storeController.acceptQuotation,
|
|
|
|
handler: storeController.acceptQuotation,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/ordersofstore/:storeId", {
|
|
|
|
|
|
|
|
schema: {
|
|
|
|
|
|
|
|
tags: ["Install"],
|
|
|
|
|
|
|
|
description: "Fetches orders based on storeId",
|
|
|
|
|
|
|
|
summary: "Get orders by storeId",
|
|
|
|
|
|
|
|
params: {
|
|
|
|
|
|
|
|
type: "object",
|
|
|
|
|
|
|
|
properties: {
|
|
|
|
|
|
|
|
storeId: { type: "string" },
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
required: ["storeId"],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
security: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handler: storeController.getOrdersByStoreId,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
next();
|
|
|
|
next();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|