Why would I use api route if trpc api route exists?

Should I always use the trpc api route? Is the normal Next Auth api just supposed to exist for other third parties to use?
5 Replies
dan
dan3y ago
the nextauth route is for nextauth. trpc route is for trpc. if you want api routes for external use it’s best to setup api routes for them specifically
Gabriel
GabrielOP3y ago
So, if I want my own app to use my apis I should them um up in api/trpcroute and if I want them to be consumed externally I set them up in /api ?
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
dan
dan3y ago
You can yes, but its not really designed to be done that way.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server