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