修改为模板路径
This commit is contained in:
parent
da759df8a6
commit
b6fd17722d
|
@ -99,10 +99,10 @@ public class ServiceConvention : IApplicationModelConvention
|
||||||
{
|
{
|
||||||
foreach (var item in action.Attributes)
|
foreach (var item in action.Attributes)
|
||||||
{
|
{
|
||||||
if (item is RouteAttribute attribute)
|
if (item is Microsoft.AspNetCore.Mvc.RouteAttribute attribute)
|
||||||
{
|
{
|
||||||
// attribute.Path
|
// attribute.Path
|
||||||
return attribute.Name;
|
return attribute.Template;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue