-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check exposure/enabled for HTTP verb match in management endpoints
Instead of mapping endpoints in ASP.NET routing per verb, always map all verbs and then filter inside middleware. Advantages: - Returns 404 when not exposed/enabled with invalid verb, instead of 405 - Can change verbs at runtime Disadvantages: - Verb information is lost in route mappings endpoint (always shows all verbs) - Entries in route mappings with all verbs disabled are no longer hidden
- Loading branch information
1 parent
2d25b80
commit b03df23
Showing
5 changed files
with
282 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.