refactor(biji): 更新 API基础路径和相关调用

- 将 VITE_API_BASE_URL 从 https://biji-houdaun.311169.xyz 修改为 /api- 更新前端 API 调用路径,统一添加 /api前缀
- 修改后端 SecurityConfig 和 SystemController,以适应新的 API 路径
This commit is contained in:
2025-08-07 15:50:35 +08:00
parent 22f05de83e
commit d47c8d2009
4 changed files with 6 additions and 6 deletions

View File

@@ -87,7 +87,7 @@ public class SecurityConfig {
"/api/markdown/grouping/**", // 按分组获取文件
"/api/markdown/recent", // 获取最近文件
"/api/markdown/{id}", // 获取单个文件内容
"/system/registration/status" // 检查注册是否开启
"/api/system/registration/status" // 检查注册是否开启
).permitAll()
// 3. 除上述白名单外,所有其他请求都需要认证

View File

@@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.Collections;
@RestController
@RequestMapping("/system")
@RequestMapping("/api/system")
@Tag(name = "系统管理")
public class SystemController {