question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

API Router with params

See original GitHub issue

Environment

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

#828

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:8
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

10reactions
pi0commented, Mar 28, 2022

This feature is landing soon with Nitropack. We need to use new router for API router.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found