Browse Source

Remove ConventionalControllerSetting.ApiRoutePrefix.

pull/12896/head
Halil İbrahim Kalkan 4 years ago
parent
commit
c56473eeb7
  1. 16
      framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/Conventions/ConventionalControllerSetting.cs
  2. 5
      framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/Conventions/ConventionalRouteBuilder.cs

16
framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/Conventions/ConventionalControllerSetting.cs

@ -33,22 +33,6 @@ public class ConventionalControllerSetting
}
}
private string _rootPath;
/// <summary>
/// Default value: null.
/// If not set, it uses
/// "api" for application services,
/// "integration-api" for integration services.
/// </summary>
[CanBeNull]
public string ApiRoutePrefix {
get => _apiRoutePrefix;
set {
Check.NotNull(value, nameof(value));
_apiRoutePrefix = value;
}
}
private string _apiRoutePrefix;
[NotNull]
public string RemoteServiceName {

5
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;

Loading…
Cancel
Save