mirror of https://github.com/abpframework/abp.git
6 changed files with 42 additions and 19 deletions
@ -1,11 +1,11 @@ |
|||||
using Volo.Abp.AspNetCore.Mvc; |
using Volo.Abp.AspNetCore.Mvc; |
||||
using Volo.CmsKit.Localization; |
using Volo.CmsKit.Localization; |
||||
|
|
||||
namespace Volo.CmsKit |
namespace Volo.CmsKit.Controllers |
||||
{ |
{ |
||||
public abstract class CmsKitPublicController : AbpController |
public class CmsKitControllerBase : AbpController |
||||
{ |
{ |
||||
protected CmsKitPublicController() |
public CmsKitControllerBase() |
||||
{ |
{ |
||||
LocalizationResource = typeof(CmsKitResource); |
LocalizationResource = typeof(CmsKitResource); |
||||
} |
} |
||||
@ -0,0 +1,8 @@ |
|||||
|
using Volo.CmsKit.Controllers; |
||||
|
|
||||
|
namespace Volo.CmsKit |
||||
|
{ |
||||
|
public abstract class CmsKitPublicControllerBase : CmsKitControllerBase |
||||
|
{ |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,15 @@ |
|||||
|
using System.Threading.Tasks; |
||||
|
using Microsoft.AspNetCore.Mvc; |
||||
|
|
||||
|
namespace Volo.CmsKit.Web.Controllers |
||||
|
{ |
||||
|
//TODO: Consider to move to an area, but also consider to not have the same prefix with API Controllers which can be problem in case of a tiered architecture
|
||||
|
public class CmsKitPublicWidgetsController : CmsKitPublicControllerBase |
||||
|
{ |
||||
|
public async Task<IActionResult> ReactionSelection(string entityType, string entityId) |
||||
|
{ |
||||
|
//TODO: Can we change "CmsReactionSelection" to typeof(ReactionSelectionViewComponent)
|
||||
|
return ViewComponent("CmsReactionSelection", new {entityType, entityId}); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue