(since?: number)
| 31 | } |
| 32 | |
| 33 | export function fetchStats(since?: number): Promise<Stats> { |
| 34 | const qs = since !== undefined ? `?since=${since}` : ''; |
| 35 | return apiFetch<Stats>(`/api/vue/stats${qs}`); |
| 36 | } |
| 37 | |
| 38 | export function fetchPayload(requestId: string): Promise<Payload> { |
| 39 | return apiFetch<Payload>(`/api/payload/${requestId}`); |