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