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.

Support route parameters in folder names

See original GitHub issue

πŸš€ Feature Proposal

We should support automatic routes for route params, as example /user/:userId/cart

β”œβ”€β”€ routes
β”‚   β”œβ”€β”€ user
β”‚   β”‚   β”œβ”€β”€ _userId
β”‚   β”‚       └── cart.js
β”œβ”€β”€ package.json
└── app.js

I would recommend we convert _ to : on loading.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
jsumnerscommented, Feb 22, 2021

With as many customizations this module is getting for hooking into the algorithm, it might just be better to require an autoload.{json,yaml} file that has mappings and other configurations.

1reaction
mcollinacommented, Apr 6, 2021

Thanks for the ping, I missed the last round of edit in the PR. It just miss docs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RouteParameters | ArcGIS Maps SDK for JavaScript 4.25
Name, Type, Summary, Class. accumulateAttributes, String[]. Use this property to specify whether the operation should accumulate values other than the valueΒ ...
Read more >
file - Flask route with directory path parameters - Stack Overflow
I'm trying to implement a Flask view that renders a file from a directory files at the root. Ideally, the path would show...
Read more >
Route parameters - Blackbaud SKY UX
SKY UX supports routes that contain Angular route parameters. ... The subfolder name must be a valid TypeScript variable because SKY UX Builder...
Read more >
Routing to controller actions in ASP.NET Core - Microsoft Learn
The following keywords are reserved route parameter names when using Controllers or Razor Pages: action; area; controller; handler; page.
Read more >
Routing - Laravel - The PHP Framework For Web Artisans
Route parameters are injected into route callbacks / controllers based on their order - the names of the route callback / controller arguments...
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