优化结构

This commit is contained in:
Yvan
2026-08-21 16:09:27 +08:00
parent a1fea67e79
commit e22301f8f6
4 changed files with 162 additions and 5 deletions
@@ -20,3 +20,11 @@ func TestDefaultIgnoredAPIsIncludeSwagger(t *testing.T) {
}
}
}
func TestDefaultIgnoredAPIsDoNotHideAnnouncementDataSource(t *testing.T) {
for _, api := range DefaultIgnoredAPIs("uploads/file") {
if api.Method == "GET" && api.Path == "/info/getInfoDataSource" {
t.Fatal("announcement data-source endpoint must remain protected by the normal API policy")
}
}
}