diff --git a/hermes_cli/web_server.py b/hermes_cli/web_server.py index bf94f0cea66..77866b990ac 100644 --- a/hermes_cli/web_server.py +++ b/hermes_cli/web_server.py @@ -119,7 +119,6 @@ _PUBLIC_API_PATHS: frozenset = frozenset({ "/api/model/info", "/api/dashboard/themes", "/api/dashboard/plugins", - "/api/dashboard/plugins/rescan", }) diff --git a/tests/hermes_cli/test_web_server.py b/tests/hermes_cli/test_web_server.py index d3143a4092a..1b2a7bb626d 100644 --- a/tests/hermes_cli/test_web_server.py +++ b/tests/hermes_cli/test_web_server.py @@ -327,6 +327,12 @@ class TestWebServerEndpoints: # Public endpoints should still work resp = unauth_client.get("/api/status") assert resp.status_code == 200 + resp = unauth_client.get("/api/dashboard/plugins") + assert resp.status_code == 200 + resp = unauth_client.get("/api/dashboard/plugins/rescan") + assert resp.status_code == 401 + resp = self.client.get("/api/dashboard/plugins/rescan") + assert resp.status_code == 200 def test_path_traversal_blocked(self): """Verify URL-encoded path traversal is blocked."""