Simple question.
/app -/questions -/edit -/[id] -route.ts
I use NextJS 14 with app router and have the following API endpoint.
How to I get the value of "id". For example if query looks like "/questions/edit/312", I should get "312".
Looked over the internet but only found solution for pages router style where you can get it using res.query