diff --git a/apps/web/app/api/[[...api]]/route.ts b/apps/web/app/api/[[...api]]/route.ts new file mode 100644 index 00000000..7ef67821 --- /dev/null +++ b/apps/web/app/api/[[...api]]/route.ts @@ -0,0 +1,13 @@ +import {app} from '@openint/api-v1' + +const handler = app.handle + +export { + handler as HEAD, + handler as OPTIONS, + handler as GET, + handler as POST, + handler as PUT, + handler as PATCH, + handler as DELETE, +} diff --git a/apps/web/package.json b/apps/web/package.json index bf42c221..2d5b7f92 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -14,6 +14,7 @@ "@clerk/nextjs": "5.6.0", "@lilyrose2798/trpc-openapi": "1.3.10", "@openint/api": "workspace:*", + "@openint/api-v1": "workspace:*", "@openint/app-config": "workspace:*", "@openint/cdk": "workspace:*", "@openint/connect": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a2397de6..198f814c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -584,6 +584,9 @@ importers: '@openint/api': specifier: workspace:* version: link:../../packages/api + '@openint/api-v1': + specifier: workspace:* + version: link:../../packages-v1/api-v1 '@openint/app-config': specifier: workspace:* version: link:../app-config