Route constraints which contain a period do not work without trailing '/'
See original GitHub issueIf you try to define a custom route products/{category:alpha}/{id:regex(\d+.\d+.\d+)}
it will match requests like https://function-fun.azurewebsites.net/api/products/electronics/1.2.3/
but not https://function-fun.azurewebsites.net/api/products/electronics/1.2.3
(no trailing slash).
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:22 (6 by maintainers)
Top Results From Across the Web
ASP.NET MVC Route not working with constraint
I have a a controller action as follows: [RequiresRole(RoleToCheckFor = "Administrator"), AcceptVerbs(HttpVerbs.Get)] public ActionResult Edit ...
Read more >Routing - ASP.NET Core Documentation - Read the Docs
Route constraints execute when a Route has matched the syntax of the incoming URL and tokenized the URL path into route values. Route...
Read more >Routing in ASP.NET Core
Routing is responsible for matching incoming HTTP requests and dispatching those requests to the app's executable endpoints.
Read more >Route File Naming (v2)
This allows you to organize your code closer to the routes that use them instead of repeating the feature names across other folders....
Read more >Route Constraints in ASP.NET Core Web API
The Route Constraints in ASP.NET Core Web API Application are a set of rules that applied to routing parameters to restrict the parameters....
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
True, it would be nice if the function routing could accept any valid URL value.
(For example when doing Function Binding with BlobNames, it would likely have a dot in the parameter.)
At least the proxy can function as a work around, which we didn’t have a few months ago.
@kzu it’s partially deployed. If you have the cycles, you can verify it in North Central US. It should reach everywhere on Tuesday.