T
TanStack3mo ago
flat-fuchsia

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
optimistic-gold
optimistic-gold3mo ago
yes. with server routes on the alpha branch
flat-fuchsia
flat-fuchsiaOP3mo ago
Great, thanks! Looking forward to its release.
optimistic-gold
optimistic-gold3mo ago
you can use the alpha version already
optimistic-gold
optimistic-gold3mo 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?