Next.js Discord

Discord Forum

How to use api routes in /src/app file layout

Answered
Exotic Shorthair posted this in #help-forum
Open in Discord
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
Answered by Clown
View full answer

5 Replies

Great Crested Flycatcher
@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