gets surface controllers and front-end api controllers auto-routed, adds tests

This commit is contained in:
Shannon
2021-02-02 14:48:01 +11:00
parent 2f97265bc0
commit c024db9d3c
13 changed files with 367 additions and 143 deletions

View File

@@ -1,4 +1,4 @@
using Umbraco.Core.Composing;
using Umbraco.Core.Composing;
namespace Umbraco.Web.Common.Controllers
{
@@ -7,8 +7,9 @@ namespace Umbraco.Web.Common.Controllers
/// </summary>
public abstract class UmbracoApiController : UmbracoApiControllerBase, IDiscoverable
{
// TODO: Should this only exist in the back office project? These really are only ever used for the back office AFAIK
/// <summary>
/// Initializes a new instance of the <see cref="UmbracoApiController"/> class.
/// </summary>
protected UmbracoApiController()
{
}

View File

@@ -2,7 +2,6 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Umbraco.Web.Common.Attributes;
using Umbraco.Web.Common.Authorization;
using Umbraco.Web.Common.Filters;
using Umbraco.Web.Features;
namespace Umbraco.Web.Common.Controllers
@@ -18,9 +17,10 @@ namespace Umbraco.Web.Common.Controllers
[UmbracoApiController]
public abstract class UmbracoApiControllerBase : ControllerBase, IUmbracoFeature
{
// TODO: Should this only exist in the back office project? These really are only ever used for the back office AFAIK
public UmbracoApiControllerBase()
/// <summary>
/// Initializes a new instance of the <see cref="UmbracoApiControllerBase"/> class.
/// </summary>
protected UmbracoApiControllerBase()
{
}
}