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}` } });