Initialize API
This commit is contained in:
7
apps/web/src/server/public-api/hono.ts
Normal file
7
apps/web/src/server/public-api/hono.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { OpenAPIHono } from "@hono/zod-openapi";
|
||||
|
||||
export function getApp() {
|
||||
return new OpenAPIHono().basePath("/api/v1");
|
||||
}
|
||||
|
||||
export type PublicAPIApp = ReturnType<typeof getApp>;
|
Reference in New Issue
Block a user