API ROUTES NEXTJS 15
Unanswered
Beveren posted this in #help-forum
BeverenOP
This is how i design my routes in express, How do i do this in nextjs? Chatgpt giving so many answers but i want standard way, im using src/app folder
here it is:
/user/create
/user/login
/user/
/user/update
/match-pair/create
/match-pair/
/match-pair/update
/match-pair/delete
here it is:
/user/create
/user/login
/user/
/user/update
/match-pair/create
/match-pair/
/match-pair/update
/match-pair/delete
2 Replies
Asian black bear
Have you tried reading the docs instead of relying on GPT? https://nextjs.org/docs/app/building-your-application/routing/route-handlers
Transvaal lion
yup, route handlers is the way