diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/Conventions/ConventionalControllerSetting.cs b/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/Conventions/ConventionalControllerSetting.cs index bb2f7f1d6f..d1b0eef6ab 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/Conventions/ConventionalControllerSetting.cs +++ b/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/Conventions/ConventionalControllerSetting.cs @@ -33,22 +33,6 @@ public class ConventionalControllerSetting } } private string _rootPath; - - /// - /// Default value: null. - /// If not set, it uses - /// "api" for application services, - /// "integration-api" for integration services. - /// - [CanBeNull] - public string ApiRoutePrefix { - get => _apiRoutePrefix; - set { - Check.NotNull(value, nameof(value)); - _apiRoutePrefix = value; - } - } - private string _apiRoutePrefix; [NotNull] public string RemoteServiceName { diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/Conventions/ConventionalRouteBuilder.cs b/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/Conventions/ConventionalRouteBuilder.cs index 05e85fd340..0906d46006 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/Conventions/ConventionalRouteBuilder.cs +++ b/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/Conventions/ConventionalRouteBuilder.cs @@ -73,11 +73,6 @@ public class ConventionalRouteBuilder : IConventionalRouteBuilder, ITransientDep protected virtual string GetApiRoutePrefix(ActionModel actionModel, ConventionalControllerSetting configuration) { - if (!configuration.ApiRoutePrefix.IsNullOrWhiteSpace()) - { - return configuration.ApiRoutePrefix; - } - if (actionModel.Controller.ControllerType.IsDefined(typeof(IntegrationServiceAttribute), true)) { return AbpAspNetCoreConsts.DefaultIntegrationServiceApiPrefix;