From ae825575451153ae6c4e1c9a24f855b1db7ff684 Mon Sep 17 00:00:00 2001 From: hxuanyu <2252193204@qq.com> Date: Tue, 27 Jan 2026 20:45:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B7=AF=E7=94=B1=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E6=9B=B4=E6=96=B0=20API=20=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E5=89=8D=E7=BC=80=E4=B8=BA=20`/api/v1`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/http/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http/router.go b/internal/http/router.go index c187c60..acef4fd 100644 --- a/internal/http/router.go +++ b/internal/http/router.go @@ -80,7 +80,7 @@ func SetupRouter(webFS embed.FS) *gin.Engine { path := c.Request.URL.Path // 如果请求的是 API 或 Swagger,则不处理静态资源 (让其返回 404) - if strings.HasPrefix(path, "/api") || strings.HasPrefix(path, "/swagger") { + if strings.HasPrefix(path, "/api/v1") || strings.HasPrefix(path, "/swagger") { return }