feat(apihits): so i can see if what end points are being used and when and how often
This commit is contained in:
@@ -8,6 +8,7 @@ import { tryCatch } from "../../../globalUtils/tryCatch.js";
|
||||
import { notifications } from "../../../../database/schema/notifications.js";
|
||||
import { db } from "../../../../database/dbclient.js";
|
||||
import { eq } from "drizzle-orm";
|
||||
import { apiHit } from "../../../globalUtils/apiHits.js";
|
||||
|
||||
const app = new OpenAPIHono({ strict: false });
|
||||
|
||||
@@ -24,7 +25,7 @@ app.openapi(
|
||||
/**
|
||||
* get the blocking notification stuff
|
||||
*/
|
||||
|
||||
apiHit(c, { endpoint: "/blockingTrigger" });
|
||||
const { data, error } = await tryCatch(
|
||||
db
|
||||
.select()
|
||||
|
||||
Reference in New Issue
Block a user