v0.3
This commit is contained in:
1 parent
68780851dd
commit
619e5665e2
16 files changed
+368
-45
No files matched your search
@@ -44,7 +44,7 @@ public class SecurityConfig {
|
||||
|
||||
// ← 授权规则:两种模式二选一,见下文
|
||||
.authorizeHttpRequests(authz -> authz
|
||||
.requestMatchers("/apiForChargingStation/user/login", "/apiForChargingStation/user/register", "/error").permitAll()
|
||||
.requestMatchers("/apiForTianze/login", "/apiForTianze/register", "/error", "/apiForTianze/addUser", "/apiForTianze/loginByToken").permitAll()
|
||||
.anyRequest().authenticated()
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user