mirror of
https://github.com/hanzoai/trpc-openapi.git
synced 2026-10-30 18:18:55 +00:00
8 lines
324 B
JavaScript
8 lines
324 B
JavaScript
import { createOpenApiNodeHttpHandler } from './node-http/index.mjs';
|
|
export const createOpenApiKoaMiddleware = (opts) => {
|
|
const openApiHttpHandler = createOpenApiNodeHttpHandler(opts);
|
|
return async (ctx, next) => {
|
|
await openApiHttpHandler(ctx.req, ctx.res, next);
|
|
};
|
|
};
|
|
//# sourceMappingURL=koa.js.map
|