merge(github): merge github/main, resolve index.ts URL conflict

Keep our defensive absolute-URL check in createAuthFetcher.
This commit is contained in:
BBQ
2026-02-12 14:45:49 +08:00
16 changed files with 221 additions and 88 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ func NewServer(log *slog.Logger, addr string, jwtSecret string, pingHandler *han
}))
e.Use(auth.JWTMiddleware(jwtSecret, func(c echo.Context) bool {
path := c.Request().URL.Path
if path == "/ping" || path == "/api/swagger.json" || path == "/auth/login" {
if path == "/ping" || path == "/health" || path == "/api/swagger.json" || path == "/auth/login" {
return true
}
if strings.HasPrefix(path, "/api/docs") {