azure-functions-host: Route constraints which contain a period do not work without trailing '/'

If 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).

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 22 (6 by maintainers)

Commits related to this issue

Most upvoted 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.