I have the following file
pages/api/[slug]/[uid].ts
And I want to get the slug
and the uid
on the body of my handler, how can I do it?
You can access it with req.query
Just console.log it and see docs for more https://nextjs.org/docs/api-routes/dynamic-api-routes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With