mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-25 05:00:07 +00:00
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:
@@ -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");
|
||||
|
||||
|
||||
+1
-1
@@ -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}` }
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user