From 2fba507644f08e896311de844b0d3607b3e09396 Mon Sep 17 00:00:00 2001 From: enisn Date: Tue, 9 Feb 2021 16:15:49 +0300 Subject: [PATCH 1/2] 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); From 78fe343f06ca3d3532edd6cd751cd37cc5b2a11e Mon Sep 17 00:00:00 2001 From: enisn Date: Tue, 9 Feb 2021 16:17:04 +0300 Subject: [PATCH 2/2] CmsKit - Fix typo at IBlogPostRepository.cs --- .../Volo.CmsKit.Domain/Volo/CmsKit/Blogs/IBlogPostRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/Blogs/IBlogPostRepository.cs b/modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/Blogs/IBlogPostRepository.cs index 3b87fb6522..198cfca104 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/Blogs/IBlogPostRepository.cs +++ b/modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/Blogs/IBlogPostRepository.cs @@ -12,7 +12,7 @@ namespace Volo.CmsKit.Blogs { Task SlugExistsAsync(Guid blogId, string slug, CancellationToken cancellationToken = default); - Task GetBySlugAsync(Guid blogId, string Slug, CancellationToken cancellationToken = default); + Task GetBySlugAsync(Guid blogId, string slug, CancellationToken cancellationToken = default); Task> GetPagedListAsync(Guid blogId, int skipCount, int maxResultCount, string sorting, bool includeDetails = false, CancellationToken cancellationToken = default);