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.
31 lines
992 B
31 lines
992 B
using Microsoft.AspNetCore.Mvc;
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
using Volo.Abp;
|
|
using Volo.Abp.GlobalFeatures;
|
|
using Volo.CmsKit.Blogs;
|
|
using Volo.CmsKit.GlobalFeatures;
|
|
|
|
namespace Volo.CmsKit.Blogs
|
|
{
|
|
[RequiresGlobalFeature(typeof(BlogsFeature))]
|
|
[RemoteService(Name = CmsKitCommonRemoteServiceConsts.RemoteServiceName)]
|
|
[Area("cms-kit")]
|
|
[Route("api/cms-kit/blogs/{blogId}/features")]
|
|
public class BlogFeatureController : CmsKitControllerBase, IBlogFeatureAppService
|
|
{
|
|
protected IBlogFeatureAppService BlogFeatureAppService { get; }
|
|
|
|
public BlogFeatureController(IBlogFeatureAppService blogFeatureAppService)
|
|
{
|
|
BlogFeatureAppService = blogFeatureAppService;
|
|
}
|
|
|
|
[HttpGet]
|
|
[Route("{featureName}")]
|
|
public Task<BlogFeatureDto> GetOrDefaultAsync(Guid blogId, string featureName)
|
|
{
|
|
return BlogFeatureAppService.GetOrDefaultAsync(blogId, featureName);
|
|
}
|
|
}
|
|
}
|
|
|