API Router with params
See original GitHub issueEnvironment
npx nuxi init nuxt3-app
Describe the bug and expected behavior
Unable to create urls with parameters in API folder calls
Steps to reproduce
Sandbox Link: https://codesandbox.io/s/blissful-mayer-zollx
Just create a tree to create a logical url with parameters in the url
Additional context
Issue Analytics
- State:
- Created 2 years ago
- Reactions:8
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Dynamic API Routes - Next.js
API routes support dynamic routes, and follow the same file naming rules used for pages . For example, the API route pages/api/post/[pid].js has...
Read more >Web API routing with multiple parameters - Stack Overflow
I have seen the WebApiConfig get "out of control" with hundreds of routes placed in it. Instead I personally prefer Attribute Routing.
Read more >Attribute Routing in ASP.NET Web API 2 | Microsoft Learn
Routing is how Web API matches a URI to an action. Web API 2 supports a new type of routing, called attribute routing....
Read more >Using parameters in routes - Drupal Wiki
Parameters can be used to pass dynamic values from the URI to the controller.
Read more >Routing - Laravel - The PHP Framework For Web Artisans
Underscores ( _ ) are also acceptable within route parameter names. Route parameters are injected into route callbacks / controllers based on their...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This feature is landing soon with Nitropack. We need to use new router for API router.
https://v3.nuxtjs.org/guide/features/server-routes