MCPcopy Create free account
hub / github.com/LumePart/Explo / prefetchPlaylists

Function prefetchPlaylists

src/web/frontend/src/lib/api.js:144–150  ·  view source on GitHub ↗
(user, playlists, options = {})

Source from the content-addressed store, hash-verified

142}
143
144export 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
152export async function logout() {
153 await apiFetch('/api/ui/logout', { method: 'POST' })

Callers 2

handleStep1Function · 0.90
handleFetchFunction · 0.90

Calls 1

apiFetchFunction · 0.85

Tested by

no test coverage detected