We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the nextjs example there are two routes:
src/pages/api/[...trpc].ts
src/pages/api/trpc/[...trpc].ts
And I cannot figure out why. Can somebody please explain the purpose of each route and when you would use one over the other?
The text was updated successfully, but these errors were encountered:
One is the OpenAPI REST route, and the other is the normal tRPC route. They are distinct in the shape of the requests.
Sorry, something went wrong.
No branches or pull requests
In the nextjs example there are two routes:
src/pages/api/[...trpc].ts
src/pages/api/trpc/[...trpc].ts
And I cannot figure out why. Can somebody please explain the purpose of each route and when you would use one over the other?
The text was updated successfully, but these errors were encountered: