(user, playlists, discovery_mode)
| 83 | } |
| 84 | |
| 85 | export async function wizardStep1(user, playlists, discovery_mode) { |
| 86 | const res = await apiFetch('/api/ui/wizard/step1', { |
| 87 | method: 'POST', |
| 88 | headers: { 'Content-Type': 'application/json' }, |
| 89 | body: JSON.stringify({ user, playlists, discovery_mode }), |
| 90 | }) |
| 91 | if (!res.ok) throw new Error(await res.text()) |
| 92 | } |
| 93 | |
| 94 | export async function wizardStep2(body) { |
| 95 | const res = await apiFetch('/api/ui/wizard/step2', { |
no test coverage detected