diff --git a/Signum.React/ApiControllers/ReflectionController.cs b/Signum.React/ApiControllers/ReflectionController.cs index 06284d57c7..ac7bf72562 100644 --- a/Signum.React/ApiControllers/ReflectionController.cs +++ b/Signum.React/ApiControllers/ReflectionController.cs @@ -4,12 +4,13 @@ using Signum.Engine.Basics; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Authorization; +using Signum.React.Filters; namespace Signum.React.ApiControllers { public class ReflectionController : ControllerBase { - [HttpGet("api/reflection/types"), AllowAnonymous] + [HttpGet("api/reflection/types"), SignumAllowAnonymous] public Dictionary Types() { return ReflectionServer.GetTypeInfoTS(); diff --git a/Signum.React/Filters/SignumAllowAnonymousAttribute.cs b/Signum.React/Filters/SignumAllowAnonymousAttribute.cs new file mode 100644 index 0000000000..d3521c3b5d --- /dev/null +++ b/Signum.React/Filters/SignumAllowAnonymousAttribute.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace Signum.React.Filters +{ + [System.AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = false)] + public sealed class SignumAllowAnonymousAttribute : Attribute + { + } +}