Skip to content

Commit 1ad8c24

Browse files
committed
replace AllowAnonymous for SignumAllowAnonymous
1 parent 4945a6a commit 1ad8c24

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Signum.React/ApiControllers/ReflectionController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
using Signum.Engine.Basics;
55
using Microsoft.AspNetCore.Mvc;
66
using Microsoft.AspNetCore.Authorization;
7+
using Signum.React.Filters;
78

89
namespace Signum.React.ApiControllers
910
{
1011
public class ReflectionController : ControllerBase
1112
{
12-
[HttpGet("api/reflection/types"), AllowAnonymous]
13+
[HttpGet("api/reflection/types"), SignumAllowAnonymous]
1314
public Dictionary<string, TypeInfoTS> Types()
1415
{
1516
return ReflectionServer.GetTypeInfoTS();
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
6+
namespace Signum.React.Filters
7+
{
8+
[System.AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = false)]
9+
public sealed class SignumAllowAnonymousAttribute : Attribute
10+
{
11+
}
12+
}

0 commit comments

Comments
 (0)