import {z, createRoute, OpenAPIHono} from "@hono/zod-openapi"; import {apiHit} from "../../../globalUtils/apiHits.js"; const app = new OpenAPIHono(); const responseSchema = z.object({ message: z.string().optional().openapi({example: "User Created"}), }); app.openapi( createRoute({ tags: ["Auth"], summary: "Returns the useraccess table", method: "get", path: "/", responses: { 200: { content: {"application/json": {schema: responseSchema}}, description: "Retrieve the user", }, }, }), async (c) => { // apit hit apiHit(c, {endpoint: "api/auth/register"}); return c.json({message: "UserRoles coming over"}); } ); export default app;