From 683653674c8f3e8e308e36ec99c8bda9011d54cc Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 22 Jun 2026 23:48:58 +0200 Subject: [PATCH] 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. --- internal/web/controller/api_docs_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/web/controller/api_docs_test.go b/internal/web/controller/api_docs_test.go index 9f34ca532..b41e146a7 100644 --- a/internal/web/controller/api_docs_test.go +++ b/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