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
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
So, if I want my own app to use my apis I should them um up in
api/trpc
route and if I want them to be consumed externally I set them up in /api
?Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
You can yes, but its not really designed to be done that way.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View