How to use api routes in /src/app file layout
Answered
Exotic Shorthair posted this in #help-forum
Exotic ShorthairOP
I don't know, but in docs I find only for /pages: https://nextjs.org/docs/pages/building-your-application/routing/api-routes
I'm beginner in api routes in Next.js
I'm beginner in api routes in Next.js
5 Replies
Great Crested Flycatcher
They are now called Route Handlers:
https://nextjs.org/docs/app/building-your-application/routing/route-handlers
https://nextjs.org/docs/app/building-your-application/routing/route-handlers
@Exotic Shorthair I don't know, but in docs I find only for /pages: https://nextjs.org/docs/pages/building-your-application/routing/api-routes
*I'm beginner in api routes in Next.js*
For future reference you can switch between App router docs and pages docs from the left top of the left sidebar
Answer
Exotic ShorthairOP
Ok, thank you
Have a nice day