(user, playlists, options = {})
| 142 | } |
| 143 | |
| 144 | export async function prefetchPlaylists(user, playlists, options = {}) { |
| 145 | await apiFetch('/api/ui/playlists/prefetch', { |
| 146 | method: 'POST', |
| 147 | headers: { 'Content-Type': 'application/json' }, |
| 148 | body: JSON.stringify({ user, playlists, ...options }), |
| 149 | }) |
| 150 | } |
| 151 | |
| 152 | export async function logout() { |
| 153 | await apiFetch('/api/ui/logout', { method: 'POST' }) |
no test coverage detected