Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

[Question] Why are there two routes in the nextjs example? #448

Description

@DevMude

In the nextjs example there are two routes:

  1. src/pages/api/[...trpc].ts
  2. 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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions