修改为模板路径

This commit is contained in:
Sanchime 2022-11-06 23:05:39 +08:00
parent da759df8a6
commit b6fd17722d
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}
}