From ae3349d2ff53767b5bc9cb30e1bf7e15f9e814ee Mon Sep 17 00:00:00 2001
From: lrj <owen.stl@gmail.com>
Date: 星期五, 03 十月 2025 20:45:44 +0800
Subject: [PATCH] 清理测试代码和调试文件

---
 backend/src/main/java/com/rongyichuang/config/SecurityConfig.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/backend/src/main/java/com/rongyichuang/config/SecurityConfig.java b/backend/src/main/java/com/rongyichuang/config/SecurityConfig.java
index 1ae6ced..d599086 100644
--- a/backend/src/main/java/com/rongyichuang/config/SecurityConfig.java
+++ b/backend/src/main/java/com/rongyichuang/config/SecurityConfig.java
@@ -48,9 +48,9 @@
             .csrf(csrf -> csrf.disable())
             .sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
             .authorizeHttpRequests(auth -> auth
-                .requestMatchers("/api/auth/**", "/api/actuator/**", "/api/test/**", "/api/cleanup/**").permitAll()
-                .requestMatchers("/api/graphql", "/api/graphql/**", "/api/graphiql").permitAll()
-                .requestMatchers("/graphql", "/graphql/**").permitAll()
+                .requestMatchers("/auth/**", "/actuator/**", "/test/**", "/cleanup/**").permitAll()
+                .requestMatchers("/upload/**").permitAll()
+                .requestMatchers("/graphql", "/graphql/**", "/graphiql").permitAll()
                 .anyRequest().authenticated()
             )
             .addFilterBefore(jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class);

--
Gitblit v1.8.0