feat(eom): all endpoints created for the eom template to run in all plants
This commit is contained in:
@@ -22,13 +22,17 @@ app.openapi(
|
||||
async (c) => {
|
||||
//const body = await c.req.json();
|
||||
// make sure we have a vaid user being accessed thats really logged in
|
||||
const includePlantToken: any = c.req.queries();
|
||||
|
||||
apiHit(c, { endpoint: "/getarticles" });
|
||||
try {
|
||||
return c.json(
|
||||
{
|
||||
success: true,
|
||||
message: "Current active Articles",
|
||||
data: await getActiveAv(),
|
||||
data: await getActiveAv(
|
||||
includePlantToken["includePlantToken"] ? true : false
|
||||
),
|
||||
},
|
||||
200
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user