I working with next for creating a basic API tha read a local file json.
I would like to make a dynamic api base on what call recive
My api folder is
api
--book
---[id].js
----content
-----[id].js
So I could make a get request to https.../book/1 and also to https.../book/1/content/4
I'am right? Is possible do it?
I've try but with no good result
Thanks

-book; --[id]; ---content; ----[id]without the.js