diff --git a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Controllers/PageController.cs b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Controllers/PageController.cs index a2124cbaff..5d3d5acc9c 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Controllers/PageController.cs +++ b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Controllers/PageController.cs @@ -5,10 +5,13 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using Volo.Abp.GlobalFeatures; +using Volo.CmsKit.GlobalFeatures; using Volo.CmsKit.Public.Pages; namespace Volo.CmsKit.Public.Web.Controllers { + [RequiresGlobalFeature(typeof(PagesFeature))] public class PageController : CmsKitPublicControllerBase { protected IPageAppService PageAppService { get; } @@ -18,7 +21,7 @@ namespace Volo.CmsKit.Public.Web.Controllers PageAppService = pageAppService; } - [HttpGet("/{*url}", Order = int.MaxValue)] + //[HttpGet("/{*url}", Order = int.MaxValue)] public async Task IndexAsync(string url) { var page = await PageAppService.FindByUrlAsync(url);