|
|
|
@ -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<IActionResult> IndexAsync(string url) |
|
|
|
{ |
|
|
|
var page = await PageAppService.FindByUrlAsync(url); |
|
|
|
|