From 2fba507644f08e896311de844b0d3607b3e09396 Mon Sep 17 00:00:00 2001 From: enisn Date: Tue, 9 Feb 2021 16:15:49 +0300 Subject: [PATCH] CmsKit - Disable PageController temporarily --- .../src/Volo.CmsKit.Public.Web/Controllers/PageController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);