This repository has been archived by the owner on Apr 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Add endpoint restrictions to the documentation #77
Comments
To bind middleware into the pipeline the request path has to start with slash. What we can do is allow using string.Empty and internally bind it to "/". Is that what you mean?. Thanks! |
Either that or just adding what you've just commented as part of the docs. :) |
I'm gonna bind the string.empty to "/", as it make sense. Thanks @karlmtc ;) |
I'm looking into this and it seems that slash is also not allowed. I'm getting this error: It may be related to this issue: aspnet/HttpAbstractions#683 |
It seems that in order to map a route to '/', you need to just call Run (not Map). Does it make sense for you to allow a change on how the Urls are mapped? |
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there,
I was trying to publish beatpulse on IIS. Since I already gave it an application Url (/beatpulse-ui), I didn't need the host to also publish the app under /beatpulse-ui. I tried using string.empty but couldn't publish the app, so I looked into the code and I saw that a "/" was needed instead.
BeatPulse/src/BeatPulse.UI/BeatPulseApplicationBuilderExtensions.cs
Line 41 in 7fe5019
How would you aproach this? Maybe be permissive and allow string.empty as well as "/"? Or just add a comment on the docs?
Thanks.
The text was updated successfully, but these errors were encountered: