One API route to rule them all
The following routes are all handled by the same API Route in
/pages/api/router/...
.
Clicking on any of the links below will open the route in a new tab.
/api/router
/api/router/test1
/api/router/test1/test2
Fetch
Clicking on any of the links below will perform a fetch to that endpoint and show the results in the textarea below.
Fetch:
/api/router
Fetch:
/api/router/test1
Fetch:
/api/router/test1/test2