mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(api): ♻️ Use OpenAPIHono instead of Hono in preparation for future changes
This commit is contained in:
parent
3c1b330d4b
commit
df466ecaa0
6 changed files with 10 additions and 8 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import type { Hono } from "@hono/hono";
|
||||
import type { RouterRoute } from "@hono/hono/types";
|
||||
import type { OpenAPIHono } from "@hono/zod-openapi";
|
||||
import type {
|
||||
Delete,
|
||||
Follow,
|
||||
|
|
@ -49,7 +49,7 @@ export interface ApiRouteExports {
|
|||
query?: z.AnyZodObject;
|
||||
body?: z.AnyZodObject;
|
||||
};
|
||||
default: (app: Hono) => RouterRoute;
|
||||
default: (app: OpenAPIHono) => RouterRoute;
|
||||
}
|
||||
|
||||
export type KnownEntity =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue