mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
785 B
25 lines
785 B
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Volo.Abp;
|
|
using Volo.Abp.Application.Dtos;
|
|
|
|
namespace Volo.CmsKit.Admin.Contents;
|
|
|
|
[RemoteService(Name = CmsKitAdminRemoteServiceConsts.RemoteServiceName)]
|
|
[Area(CmsKitAdminRemoteServiceConsts.ModuleName)]
|
|
[Route("api/cms-kit-admin/contents")]
|
|
public class ContentAdminController : CmsKitAdminController, IContentAdminAppService
|
|
{
|
|
protected IContentAdminAppService ContentAdminAppService { get; }
|
|
|
|
public ContentAdminController(IContentAdminAppService contentAdminAppService)
|
|
{
|
|
ContentAdminAppService = contentAdminAppService;
|
|
}
|
|
|
|
[HttpGet]
|
|
public virtual Task<ListResultDto<ContentWidgetDto>> GetWidgetsAsync()
|
|
{
|
|
return ContentAdminAppService.GetWidgetsAsync();
|
|
}
|
|
}
|
|
|