adeshboudh16
updated ui, docs, tests
47203d3
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()
}