Skip to content

How to get query params in nextjs api route? #68218

Discussion options

You must be logged in to vote

Never mind, I found it here in some other link by accident: https://nextjs.org/docs/app/building-your-application/routing/route-handlers#opting-out-of-caching

I recommend adding this example to api route page in the docs and also updating that text which I mentioned where they say they are talking about query params but give an example of path param.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rohitkrishna094
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants