feat(apihits): so i can see if what end points are being used and when and how often
This commit is contained in:
@@ -30,10 +30,9 @@ app.openapi(
|
||||
responses: responses(),
|
||||
}),
|
||||
async (c) => {
|
||||
apiHit(c, { endpoint: "api/auth/register" });
|
||||
// make sure we have a vaid user being accessed thats really logged in
|
||||
const body = await c.req.json();
|
||||
|
||||
apiHit(c, { endpoint: "/cycleCount", lastBody: body });
|
||||
const authHeader = c.req.header("Authorization");
|
||||
|
||||
const token = authHeader?.split("Bearer ")[1] || "";
|
||||
|
||||
Reference in New Issue
Block a user