Skip to content

Commit

Permalink
Integrate v1 api into current next.js app
Browse files Browse the repository at this point in the history
  • Loading branch information
openint-bot authored Feb 21, 2025
1 parent eba712f commit 4e6a274
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions apps/web/app/api/[[...api]]/route.ts
Original file line number Diff line number Diff line change
@@ -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,
}
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4e6a274

Please sign in to comment.