T
TanStack6mo ago
rare-sapphire

Is it possible to create both a file route and an API with the same path?

For example: GET /auth/login would show the login form, POST /auth/login would handle it?
4 Replies
genetic-orange
genetic-orange6mo ago
yes. with server routes on the alpha branch
rare-sapphire
rare-sapphireOP6mo ago
Great, thanks! Looking forward to its release.
genetic-orange
genetic-orange6mo ago
you can use the alpha version already
genetic-orange
genetic-orange6mo ago
GitHub
Start BETA - Tracking · TanStack router · Discussion #2863
Tracking any important changes for TanStack Start during the BETA period. If you are coming from the ALPHA of TanStack Start, you can see all the breaking changes that were made here - #2403

Did you find this page helpful?