From 94ec772521ea05333f9fcb876d7623c83f22ae2e Mon Sep 17 00:00:00 2001 From: Thurston Sandberg Date: Wed, 3 Dec 2025 05:03:25 -0500 Subject: [PATCH] test(amp): add tests for /auth/* and /api/tab/* routes --- internal/api/modules/amp/routes_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/api/modules/amp/routes_test.go b/internal/api/modules/amp/routes_test.go index 51bd7abd..89e43506 100644 --- a/internal/api/modules/amp/routes_test.go +++ b/internal/api/modules/amp/routes_test.go @@ -39,6 +39,11 @@ func TestRegisterManagementRoutes(t *testing.T) { {"/api/threads", http.MethodGet}, {"/threads.rss", http.MethodGet}, // Root-level route (no /api prefix) {"/api/otel", http.MethodGet}, + {"/api/tab", http.MethodGet}, + {"/api/tab/some/path", http.MethodGet}, + {"/auth", http.MethodGet}, // Root-level auth route + {"/auth/cli-login", http.MethodGet}, // CLI login flow + {"/auth/callback", http.MethodGet}, // OAuth callback // Google v1beta1 bridge should still proxy non-model requests (GET) and allow POST {"/api/provider/google/v1beta1/models", http.MethodGet}, {"/api/provider/google/v1beta1/models", http.MethodPost},