refactor: move session-reports endpoint to /api/galactic/session-reports

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 <noreply@anthropic.com>
This commit is contained in:
Oliver Kieselbach
2026-03-01 16:26:59 +01:00
parent 80ee69276d
commit f092d601db
2 changed files with 2 additions and 2 deletions
@@ -25,7 +25,7 @@ namespace AutopilotMonitor.Functions.Functions
[Function("GetSessionReports")]
public async Task<HttpResponseData> 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");
@@ -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}` }
});