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.

Allow global wildcards in the router

See original GitHub issue

We may want in some situations to be able to define routes like

{verb: 'get', url: '/path/:param1/*param2*', controller: 'myController', action: 'action'}

Where param2 is catching the rest of the url, i.e.:

  • _plugin/myPlugin/path/foo/bar => param2 = bar
  • _plugin/myPlugin/path/foo/bar/some/other/params => param2 = bar/some/other/params

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
scottinetcommented, Oct 10, 2017

As discussed, I agree with all that. 👍

I’ll simply amend the duplicate rule: a more specific route will not be considered as a duplicate of a wildcard route, but two same wildcard routes must be considered as duplicates

0reactions
ballinettecommented, Mar 1, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring Router Mode-config, Wild-card, Pre-shared Keys ...
In this sample configuration, a router is configured for mode configuration (get an IP address from the pool), wild-card, pre-shared keys ...
Read more >
Wildcard masks - Study CCNA
Wildcard masks are used to specify a range of network addresses. They are commonly used with routing protocols (like OSPF) and access lists....
Read more >
Wildcards and Destination Lists
Every domain in a block or allow destination list has an implied left side and right side wildcard.Note: Asterisks () are not supported....
Read more >
Angular 2 Router Wildcard handling with child-routes
You can easily have a centralized wildcard route, i.e. for a site-wide 'Page not found' component. It simply has to be extracted into...
Read more >
About Wildcard IPv4 Addresses - WatchGuard Technologies
To configure wildcard IP addresses in an alias or policy, you specify wildcard values in one or more octets in the netmask. Netmask...
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