Allow endpoints to override .Match(), for example to allow an endpoint to match all subpaths under a particular path

This commit is contained in:
TheEvilPenguin committed 2025-06-12 09:26:37 +10:00
1 parent a7dce90880
commit 55dfd09550
1 file changed
+1 -1
+1 -1
View File
@@ -9,7 +9,7 @@ namespace CommunityMapLocation.Api
{
public abstract HttpMethod HttpMethod { 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);
}