How can i use the protected routes in the nextjs 13, ?
Unanswered
Asiatic Lion posted this in #help-forum
Asiatic LionOP
how can i create the api login routes and register routes in the next js 13 and use as the backend without using other backend frameworks!
1 Reply
House Wren
Not sure if I understood the question correctly, but you can create an API including your login/register routes with route handlers: https://nextjs.org/docs/app/building-your-application/routing/route-handlers
for example: app/api/v1/login/route.ts
for example: app/api/v1/login/route.ts