feat(apihits): so i can see if what end points are being used and when and how often
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { createRoute, OpenAPIHono, z } from "@hono/zod-openapi";
|
||||
import { responses } from "../../../globalUtils/routeDefs/responses.js";
|
||||
import { apiHit } from "../../../globalUtils/apiHits.js";
|
||||
|
||||
const app = new OpenAPIHono({ strict: false });
|
||||
const current: any = [
|
||||
@@ -108,7 +109,7 @@ app.openapi(
|
||||
async (c) => {
|
||||
//const body = await c.req.json();
|
||||
// make sure we have a vaid user being accessed thats really logged in
|
||||
//apiHit(c, { endpoint: `api/logger/logs/id` });
|
||||
apiHit(c, { endpoint: "/getavalibleaquerys" });
|
||||
|
||||
return c.json({
|
||||
success: true,
|
||||
|
||||
Reference in New Issue
Block a user