|
|
@ -1115,24 +1115,18 @@ fastify.get("/api/getbatchnumbers/:storeId/:type", {
|
|
|
|
description: "This is to Get batch numbers",
|
|
|
|
description: "This is to Get batch numbers",
|
|
|
|
summary: "This is to Get batch numbers",
|
|
|
|
summary: "This is to Get batch numbers",
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
|
required: ["storeId"],
|
|
|
|
|
|
|
|
type: "object",
|
|
|
|
type: "object",
|
|
|
|
properties: {
|
|
|
|
properties: {
|
|
|
|
storeId: {
|
|
|
|
storeId: {
|
|
|
|
type: "string",
|
|
|
|
type: "string",
|
|
|
|
description: "storeId",
|
|
|
|
description: "storeId",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
params: {
|
|
|
|
|
|
|
|
required: ["type"],
|
|
|
|
|
|
|
|
type: "object",
|
|
|
|
|
|
|
|
properties: {
|
|
|
|
|
|
|
|
type: {
|
|
|
|
type: {
|
|
|
|
type: "string",
|
|
|
|
type: "string",
|
|
|
|
description: "type",
|
|
|
|
description: "type",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
required: ["storeId", "type"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
security: [
|
|
|
|
security: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1140,7 +1134,7 @@ fastify.get("/api/getbatchnumbers/:storeId/:type", {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
// preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
handler: storeController.getbatchnumbers,
|
|
|
|
handler: storeController.getbatchnumbers,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|