This commit is contained in:
雷欧(林平凡)
2025-06-16 16:52:57 +08:00
parent b8ba94612b
commit 959abb6845
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ public class SecurityConfig {
.addFilterBefore(jwtAuthFilter, UsernamePasswordAuthenticationFilter.class)
.authenticationProvider(provider)
.authorizeHttpRequests(auth -> auth
.requestMatchers("/login", "/captcha").permitAll()
.requestMatchers("/auth/login", "/auth/captcha").permitAll()
.anyRequest().authenticated());
return http.build();

View File

@@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.concurrent.TimeUnit;
@RestController
@RequestMapping("/api/auth")
@RequestMapping("/auth")
public class AuthController {
private static final Logger logger = LoggerFactory.getLogger(AuthController.class);