diff --git a/src/AbpDesk/AbpDesk.Web.Mvc/AbpDesk.Web.Mvc.csproj b/src/AbpDesk/AbpDesk.Web.Mvc/AbpDesk.Web.Mvc.csproj index aad5e4b507..50640e7e03 100644 --- a/src/AbpDesk/AbpDesk.Web.Mvc/AbpDesk.Web.Mvc.csproj +++ b/src/AbpDesk/AbpDesk.Web.Mvc/AbpDesk.Web.Mvc.csproj @@ -21,8 +21,8 @@ - + diff --git a/src/AbpDesk/AbpDesk.Web.Mvc/AbpDeskWebMvcModule.cs b/src/AbpDesk/AbpDesk.Web.Mvc/AbpDeskWebMvcModule.cs index ce05086fa6..c1c2ad2b36 100644 --- a/src/AbpDesk/AbpDesk.Web.Mvc/AbpDeskWebMvcModule.cs +++ b/src/AbpDesk/AbpDesk.Web.Mvc/AbpDeskWebMvcModule.cs @@ -27,7 +27,7 @@ namespace AbpDesk.Web.Mvc typeof(AbpAspNetCoreMvcUiBootstrapModule), typeof(AbpDeskApplicationModule), typeof(AbpDeskEntityFrameworkCoreModule), - typeof(AbpIdentityApplicationModule), + typeof(AbpIdentityHttpApiModule), typeof(AbpIdentityEntityFrameworkCoreModule), typeof(AbpIdentityWebModule), typeof(AbpAutofacModule) diff --git a/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/AbpIdentityHttpApiModule.cs b/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/AbpIdentityHttpApiModule.cs index 5f9c285c9f..7c3f5f6288 100644 --- a/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/AbpIdentityHttpApiModule.cs +++ b/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/AbpIdentityHttpApiModule.cs @@ -1,5 +1,4 @@ using System; -using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.DependencyInjection; using Volo.Abp.AspNetCore.Mvc; using Volo.Abp.Modularity; @@ -19,10 +18,7 @@ namespace Volo.Abp.Identity { opts.RootPath = "identity"; opts.UrlControllerNameNormalizer = context => context.ControllerName.RemovePreFix("Identity"); - opts.ApiVersions.Add(new ApiVersion(2, 0)); }); - - options.ConventionalControllers.Create(typeof(AbpIdentityHttpApiModule).Assembly); }); } } diff --git a/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/FixtureController.cs b/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/FixtureController.cs deleted file mode 100644 index 9321177b8a..0000000000 --- a/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/FixtureController.cs +++ /dev/null @@ -1,46 +0,0 @@ -using Microsoft.AspNetCore.Mvc; -using Volo.Abp.ApiVersioning; -using Volo.Abp.Application.Services; -using Volo.Abp.AspNetCore.Mvc; - -namespace Volo.Abp.Identity -{ - //TODO: This is just a test controller and will be removed later - [ApiVersion("3.0")] - [ApiVersion("2.0", Deprecated = true)] - [Route("api/v{apiVersion:apiVersion}/identity/fixture")] - public class FixtureController : AbpController, IRemoteService - { - private readonly IRequestedApiVersion _requestedApiVersion; - - public FixtureController(IRequestedApiVersion requestedApiVersion) - { - _requestedApiVersion = requestedApiVersion; - } - - [HttpGet, MapToApiVersion("2.0")] - public string Get() - { - return 41 + " - " + _requestedApiVersion.Current; - } - - [HttpGet, MapToApiVersion("3.0")] - public string Get3() - { - return 42 + " - " + _requestedApiVersion.Current; - } - - [HttpPost] - public int Post() - { - return 43; - } - - [HttpPost] - [Route("{id}")] - public int Post(int id) - { - return id; - } - } -} \ No newline at end of file diff --git a/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/V4/FixtureV4Controller.cs b/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/V4/FixtureV4Controller.cs deleted file mode 100644 index dc271bdbba..0000000000 --- a/src/Volo.Abp.Identity.HttpApi/Volo/Abp/Identity/V4/FixtureV4Controller.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Microsoft.AspNetCore.Mvc; -using Volo.Abp.ApiVersioning; -using Volo.Abp.Application.Services; -using Volo.Abp.AspNetCore.Mvc; - -namespace Volo.Abp.Identity.V4 -{ - //TODO: This is just a test controller and will be removed later - [ApiVersion("4.0")] - [Route("api/v{apiVersion:apiVersion}/identity/fixture")] - public class FixtureController : AbpController, IRemoteService - { - private readonly IRequestedApiVersion _requestedApiVersion; - - public FixtureController(IRequestedApiVersion requestedApiVersion) - { - _requestedApiVersion = requestedApiVersion; - } - - [HttpGet] - public string Get() - { - return 41 + " - " + _requestedApiVersion.Current; - } - } -} \ No newline at end of file