feat(eom): all endpoints created for the eom template to run in all plants

This commit is contained in:
2025-09-30 19:55:35 -05:00
parent a7f45abfeb
commit 9a14f250b6
25 changed files with 872 additions and 33 deletions

View File

@@ -17,12 +17,14 @@ app.openapi(
}),
async (c) => {
//const body = await c.req.json();
const month: string = c.req.query("month") ?? "";
// make sure we have a vaid user being accessed thats really logged in
const q: any = c.req.queries();
apiHit(c, { endpoint: "/lastsalesprice" });
try {
const res = await lastSales(month);
const res = await lastSales(
q["month"] ? q["month"][0] : null,
q["includePlantToken"] ? true : false
);
return c.json(
{ success: res.success, message: res.message, data: res.data },