Files
Umbraco-CMS/src/Umbraco.Web.Common/Controllers/UmbracoApiControllerBase.cs

27 lines
936 B
C#
Raw Normal View History

using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using Umbraco.Web.Common.Filters;
2020-04-20 12:20:47 +02:00
using Umbraco.Web.Features;
using Umbraco.Web.WebApi.Filters;
using Umbraco.Web.Common.Attributes;
2020-04-20 12:20:47 +02:00
namespace Umbraco.Web.Common.Controllers
{
/// <summary>
/// Provides a base class for Umbraco API controllers.
/// </summary>
/// <remarks>
/// <para>These controllers are NOT auto-routed.</para>
/// <para>The base class is <see cref="ControllerBase"/> which are netcore API controllers without any view support</para>
/// </remarks>
[FeatureAuthorize] // TODO: This could be part of our conventions
[TypeFilter(typeof(HttpResponseExceptionFilter))] // TODO: This could be part of our conventions
[UmbracoApiController]
public abstract class UmbracoApiControllerBase : ControllerBase, IUmbracoFeature
2020-04-20 12:20:47 +02:00
{
public UmbracoApiControllerBase()
{
}
2020-04-20 12:20:47 +02:00
}
}