Introduce IgnoredUrlSuffixesInControllerNames

pull/17626/head
Halil İbrahim Kalkan 2 years ago
parent 58cdfb9250
commit 4cc49dffa7

@ -20,6 +20,8 @@ public class AbpConventionalControllerOptions
/// </summary>
public bool UseV3UrlStyle { get; set; }
public string[] IgnoredUrlSuffixesInControllerNames { get; set; } = new[] { "Integration" };
public AbpConventionalControllerOptions()
{
ConventionalControllerSettings = new ConventionalControllerSettingList();

@ -109,7 +109,7 @@ public class ConventionalRouteBuilder : IConventionalRouteBuilder, ITransientDep
{
if (configuration?.UrlControllerNameNormalizer == null)
{
return controllerName;
return controllerName.RemovePostFix(Options.IgnoredUrlSuffixesInControllerNames);
}
return configuration.UrlControllerNameNormalizer(

Loading…
Cancel
Save