From c56473eeb7b02efdca7fd48f7fdabd3cbb9ee1d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Fri, 9 Sep 2022 08:31:01 +0300 Subject: [PATCH] Remove ConventionalControllerSetting.ApiRoutePrefix. --- .../Conventions/ConventionalControllerSetting.cs | 16 ---------------- .../Mvc/Conventions/ConventionalRouteBuilder.cs | 5 ----- 2 files changed, 21 deletions(-) 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;