From 55dfd09550a136eecdd32f658fb072fe0a8d1a0a Mon Sep 17 00:00:00 2001 From: TheEvilPenguin Date: Thu, 12 Jun 2025 09:26:37 +1000 Subject: [PATCH] Allow endpoints to override .Match(), for example to allow an endpoint to match all subpaths under a particular path --- CommunityMapLocation/Api/Endpoint.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CommunityMapLocation/Api/Endpoint.cs b/CommunityMapLocation/Api/Endpoint.cs index f1179c6..e6e0321 100644 --- a/CommunityMapLocation/Api/Endpoint.cs +++ b/CommunityMapLocation/Api/Endpoint.cs @@ -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); }