feat(apihits): so i can see if what end points are being used and when and how often
This commit is contained in:
@@ -3,6 +3,7 @@ import { responses } from "../../../globalUtils/routeDefs/responses.js";
|
||||
import { tryCatch } from "../../../globalUtils/tryCatch.js";
|
||||
import { getINV } from "../controller/getinventory.js";
|
||||
import { getFakeEDI } from "../controller/fakeEDIUpdate.js";
|
||||
import { apiHit } from "../../../globalUtils/apiHits.js";
|
||||
|
||||
const app = new OpenAPIHono({ strict: false });
|
||||
const Body = z.object({
|
||||
@@ -27,7 +28,7 @@ app.openapi(
|
||||
const address: string = c.req.query("address") ?? "";
|
||||
|
||||
// make sure we have a vaid user being accessed thats really logged in
|
||||
//apiHit(c, { endpoint: `api/logger/logs/id` });
|
||||
apiHit(c, { endpoint: "/fakeediupdate" });
|
||||
const { data, error } = await tryCatch(
|
||||
getFakeEDI(address.toString() ?? "")
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user