From 25dc8c13144cc891bbc467fefb8b2dac1d0c8dd1 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期五, 27 三月 2026 09:28:44 +0800
Subject: [PATCH] 调整 JWT 鉴权策略,使用在控制器和方法上添加标签的方式来鉴权
---
WebAPI/Global.asax.cs | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/WebAPI/Global.asax.cs b/WebAPI/Global.asax.cs
index 5ec852b..912ff30 100644
--- a/WebAPI/Global.asax.cs
+++ b/WebAPI/Global.asax.cs
@@ -11,12 +11,8 @@
{
protected void Application_Start()
{
- GlobalConfiguration.Configure(WebApiConfig.Register);
- }
- // 搴旂敤鍏抽棴鏃讹紝鍋滄鏈嶅姟锛岄槻姝㈡硠闇�
- protected void Application_End()
- {
+ GlobalConfiguration.Configure(WebApiConfig.Register);
}
}
}
--
Gitblit v1.9.1