|
|
@ -1,24 +1,27 @@ |
|
|
using System.Threading.Tasks; |
|
|
using System.Threading.Tasks; |
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
using Volo.Abp; |
|
|
using Volo.Abp; |
|
|
|
|
|
using Volo.Abp.GlobalFeatures; |
|
|
|
|
|
using Volo.CmsKit.GlobalFeatures; |
|
|
|
|
|
|
|
|
namespace Volo.CmsKit.Public.Pages |
|
|
namespace Volo.CmsKit.Public.Pages |
|
|
{ |
|
|
{ |
|
|
|
|
|
[RequiresGlobalFeature(typeof(PagesFeature))] |
|
|
[RemoteService(Name = CmsKitPublicRemoteServiceConsts.RemoteServiceName)] |
|
|
[RemoteService(Name = CmsKitPublicRemoteServiceConsts.RemoteServiceName)] |
|
|
[Area("cms-kit")] |
|
|
[Area("cms-kit")] |
|
|
[Route("api/cms-kit-public/comments")] |
|
|
[Route("api/cms-kit-public/pages")] |
|
|
public class PagesPublicController : IPageAppService |
|
|
public class PagesPublicController : IPagePublicAppService |
|
|
{ |
|
|
{ |
|
|
protected readonly IPageAppService PageAppService; |
|
|
protected IPagePublicAppService PageAppService { get; } |
|
|
|
|
|
|
|
|
public PagesPublicController(IPageAppService pageAppService) |
|
|
public PagesPublicController(IPagePublicAppService pageAppService) |
|
|
{ |
|
|
{ |
|
|
PageAppService = pageAppService; |
|
|
PageAppService = pageAppService; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[HttpGet] |
|
|
[HttpGet] |
|
|
[Route("url/{url}")] |
|
|
[Route("url/{url}")] |
|
|
public Task<PageDto> FindByUrlAsync(string url) |
|
|
public virtual Task<PageDto> FindByUrlAsync(string url) |
|
|
{ |
|
|
{ |
|
|
return PageAppService.FindByUrlAsync(url); |
|
|
return PageAppService.FindByUrlAsync(url); |
|
|
} |
|
|
} |
|
|
|