refactor(ocme): added in apihits to getinfo

This commit is contained in:
2025-03-10 16:34:46 -05:00
parent 971038b10e
commit e2562768a5

View File

@@ -1,5 +1,6 @@
import {createRoute, OpenAPIHono, z} from "@hono/zod-openapi";
import {getInfo} from "../controller/getInfo.js";
import {apiHit} from "../../../globalUtils/apiHits.js";
const app = new OpenAPIHono();
@@ -69,6 +70,7 @@ app.openapi(
}),
async (c) => {
// make sure we have a vaid user being accessed thats really logged in
apiHit(c, {endpoint: "api/auth/register"});
try {
return c.json({success: true, message: "Ocme Info", data: await getInfo()}, 200);
} catch (error) {