Allow endpoints to override .Match(), for example to allow an endpoint to match all subpaths under a particular path
This commit is contained in:
1 parent
a7dce90880
commit
55dfd09550
1 file changed
+1
-1
@@ -9,7 +9,7 @@ namespace CommunityMapLocation.Api
|
|||||||
{
|
{
|
||||||
public abstract HttpMethod HttpMethod { get; }
|
public abstract HttpMethod HttpMethod { get; }
|
||||||
public abstract string RoutePattern { get; }
|
public abstract string RoutePattern { get; }
|
||||||
public bool Matches(Uri uri)
|
public virtual bool Matches(Uri uri)
|
||||||
{
|
{
|
||||||
return String.Concat(uri.Segments).Equals(RoutePattern, StringComparison.OrdinalIgnoreCase);
|
return String.Concat(uri.Segments).Equals(RoutePattern, StringComparison.OrdinalIgnoreCase);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user