Files
zszq-trs/YLErpWeb/WebAPI/ApiAuthorizeAttribute.cs
2024-05-09 14:06:26 +08:00

13 lines
304 B
C#

using Microsoft.AspNetCore.Authorization;
namespace YLErp.Web.WebAPI
{
public class ApiAuthorizeAttribute : AuthorizeAttribute
{
public ApiAuthorizeAttribute() : base(AuthHelper.JwtAuthType)
{
this.AuthenticationSchemes = AuthHelper.JwtAuthType;
}
}
}