diff --git a/Dipper.Alioth/Web/ServiceConvention.cs b/Dipper.Alioth/Web/ServiceConvention.cs index 96d2076..bfe5871 100644 --- a/Dipper.Alioth/Web/ServiceConvention.cs +++ b/Dipper.Alioth/Web/ServiceConvention.cs @@ -99,10 +99,10 @@ public class ServiceConvention : IApplicationModelConvention { foreach (var item in action.Attributes) { - if (item is RouteAttribute attribute) + if (item is Microsoft.AspNetCore.Mvc.RouteAttribute attribute) { // attribute.Path - return attribute.Name; + return attribute.Template; } } }