fix: 网关支持按版本转发 admin swagger

This commit is contained in:
2025-12-04 15:35:01 +08:00
parent 54ca89f5b6
commit f50d2d4bb2
2 changed files with 14 additions and 0 deletions

View File

@@ -15,6 +15,13 @@
{ "PathRemovePrefix": "/api/admin" } { "PathRemovePrefix": "/api/admin" }
] ]
}, },
"admin-swagger-v": {
"ClusterId": "admin",
"Match": { "Path": "/api/admin/v{version}/swagger/{**catch-all}" },
"Transforms": [
{ "PathPattern": "/swagger/{**catch-all}" }
]
},
"mini-route": { "mini-route": {
"ClusterId": "mini", "ClusterId": "mini",
"Match": { "Path": "/api/mini/{**catch-all}" } "Match": { "Path": "/api/mini/{**catch-all}" }

View File

@@ -48,6 +48,13 @@
{ "PathRemovePrefix": "/api/admin" } { "PathRemovePrefix": "/api/admin" }
] ]
}, },
"admin-swagger-v": {
"ClusterId": "admin",
"Match": { "Path": "/api/admin/v{version}/swagger/{**catch-all}" },
"Transforms": [
{ "PathPattern": "/swagger/{**catch-all}" }
]
},
"mini-route": { "mini-route": {
"ClusterId": "mini", "ClusterId": "mini",
"Match": { "Path": "/api/mini/{**catch-all}" } "Match": { "Path": "/api/mini/{**catch-all}" }