From f092d601db64c71699453df11fefa97087b531e7 Mon Sep 17 00:00:00 2001 From: Oliver Kieselbach Date: Sun, 1 Mar 2026 16:26:59 +0100 Subject: [PATCH] refactor: move session-reports endpoint to /api/galactic/session-reports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Consistent with /api/galactic/sessions and /api/galactic/app-metrics — all cross-tenant Galactic Admin endpoints live under /api/galactic/. Co-Authored-By: Claude Opus 4.6 --- .../Functions/GetSessionReportsFunction.cs | 2 +- .../admin-configuration/components/SessionReportsSection.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Backend/AutopilotMonitor.Functions/Functions/GetSessionReportsFunction.cs b/src/Backend/AutopilotMonitor.Functions/Functions/GetSessionReportsFunction.cs index 96f9c78e..d652c112 100644 --- a/src/Backend/AutopilotMonitor.Functions/Functions/GetSessionReportsFunction.cs +++ b/src/Backend/AutopilotMonitor.Functions/Functions/GetSessionReportsFunction.cs @@ -25,7 +25,7 @@ namespace AutopilotMonitor.Functions.Functions [Function("GetSessionReports")] public async Task Run( - [HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "session-reports")] HttpRequestData req) + [HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "galactic/session-reports")] HttpRequestData req) { _logger.LogInformation("GetSessionReports function processing request"); diff --git a/src/Web/autopilot-monitor-web/app/admin-configuration/components/SessionReportsSection.tsx b/src/Web/autopilot-monitor-web/app/admin-configuration/components/SessionReportsSection.tsx index 4ab8829f..add4be7e 100644 --- a/src/Web/autopilot-monitor-web/app/admin-configuration/components/SessionReportsSection.tsx +++ b/src/Web/autopilot-monitor-web/app/admin-configuration/components/SessionReportsSection.tsx @@ -38,7 +38,7 @@ export function SessionReportsSection({ const token = await getAccessToken(); if (!token) throw new Error("Failed to get access token"); - const res = await fetch(`${API_BASE_URL}/api/session-reports`, { + const res = await fetch(`${API_BASE_URL}/api/galactic/session-reports`, { headers: { Authorization: `Bearer ${token}` } });