In ASP.NET Core Web API, I can have an empty route on a controller that resolves when using the root url. When using Azure Function HttpTrigger, an empty route is currently impossible, even when using the ASP.NET Core Integration, and when disabling the home page.
Why is this behavior so different?
I should be able to have empty routes on an HttpTrigger.
As a temp workaround you can do the following as your route:
Route = "{ignored:maxlength(0)?}"
or
Route = "{*ignored}" (this option will match any url)
In ASP.NET Core Web API, I can have an empty route on a controller that resolves when using the root url. When using Azure Function HttpTrigger, an empty route is currently impossible, even when using the ASP.NET Core Integration, and when disabling the home page.
Why is this behavior so different?
I should be able to have empty routes on an HttpTrigger.