Parcourir la source

fix(api-docs): exclude /panel/outbound and /panel/routing from route guard

718b7e16 added these top-level SPA page routes in spa.go but didn't add them to the TestAPIRoutesDocumented skip-list, so the guard flagged them as undocumented and failed CI on main. Like the other /panel/* page routes they serve the SPA, not a JSON API, so they belong in the skip-list rather than endpoints.ts.
MHSanaei il y a 16 heures
Parent
commit
683653674c
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      internal/web/controller/api_docs_test.go

+ 2 - 1
internal/web/controller/api_docs_test.go

@@ -133,7 +133,8 @@ func TestAPIRoutesDocumented(t *testing.T) {
 			"/": true, "/panel/": true, "/panel/inbounds": true,
 			"/panel/clients": true, "/panel/groups": true,
 			"/panel/nodes": true, "/panel/settings": true,
-			"/panel/xray": true, "/panel/api-docs": true,
+			"/panel/xray": true, "/panel/outbound": true,
+			"/panel/routing": true, "/panel/api-docs": true,
 		}
 		if spaPages[r.Path] {
 			continue