Spaces:
Sleeping
Sleeping
File size: 298 Bytes
47203d3 | 1 2 3 4 5 6 7 8 9 | 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()
}
|