using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Umbraco.Cms.Core.Features;
using Umbraco.Cms.Web.Common.Attributes;
using Umbraco.Cms.Web.Common.Authorization;
namespace Umbraco.Cms.Web.Common.Controllers;
///
/// Provides a base class for Umbraco API controllers.
///
///
/// These controllers are NOT auto-routed.
/// The base class is which are netcore API controllers without any view support
///
[Authorize(Policy = AuthorizationPolicies.UmbracoFeatureEnabled)] // TODO: This could be part of our conventions
[UmbracoApiController]
public abstract class UmbracoApiControllerBase : ControllerBase, IUmbracoFeature
{
///
/// Initializes a new instance of the class.
///
protected UmbracoApiControllerBase()
{
}
}