diff --git a/src/Contrib/Service/Masa.Contrib.Service.MinimalAPIs/ServiceBase.cs b/src/Contrib/Service/Masa.Contrib.Service.MinimalAPIs/ServiceBase.cs index c7c3216db..c7526023d 100644 --- a/src/Contrib/Service/Masa.Contrib.Service.MinimalAPIs/ServiceBase.cs +++ b/src/Contrib/Service/Masa.Contrib.Service.MinimalAPIs/ServiceBase.cs @@ -123,7 +123,7 @@ protected virtual string GetBaseUri(ServiceRouteOptions globalOptions, Pluraliza return string.Join('/', list.Where(x => !string.IsNullOrWhiteSpace(x)).Select(u => u.Trim('/'))); } - RouteHandlerBuilder MapMethods(ServiceRouteOptions globalOptions, string pattern, string? httpMethod, Delegate handler) + protected virtual RouteHandlerBuilder MapMethods(ServiceRouteOptions globalOptions, string pattern, string? httpMethod, Delegate handler) { if (!string.IsNullOrWhiteSpace(httpMethod)) return App.MapMethods(pattern, new[]