Spaces:
Sleeping
Sleeping
| import { apiFetch } from './client' | |
| import type { SessionReport } from '../types' | |
| export async function getSession(sessionId: string): Promise<SessionReport> { | |
| const res = await apiFetch(`/api/sessions/${sessionId}`) | |
| if (!res.ok) throw new Error('Failed to load report') | |
| return res.json() | |
| } | |