Getting rid of HttpResponseExceptionFilter
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Umbraco.Web.Common.Attributes;
|
||||
using Umbraco.Web.Common.Authorization;
|
||||
@@ -15,7 +15,6 @@ namespace Umbraco.Web.Common.Controllers
|
||||
/// <para>The base class is <see cref="ControllerBase"/> which are netcore API controllers without any view support</para>
|
||||
/// </remarks>
|
||||
[Authorize(Policy = AuthorizationPolicies.UmbracoFeatureEnabled)] // 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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user