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

@DevMude

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?

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