mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Begun implementing playback
This commit is contained in:
1 parent
279e5ac34f
commit
fa7375d0e9
9 files changed
+712
-49
No files matched your search
@@ -200,6 +200,7 @@ export const api = {
|
||||
editTrack: (trackId: string, fields: Record<string, string | number | null>) =>
|
||||
send<{ status: string }>('PATCH', '/api/tracks', { track_id: trackId, fields }),
|
||||
artUrl: (trackId: string) => `/api/tracks/art?track_id=${encodeURIComponent(trackId)}`,
|
||||
audioUrl: (trackId: string) => `/api/tracks/audio?track_id=${encodeURIComponent(trackId)}`,
|
||||
uploadArt: async (trackId: string, file: File) => {
|
||||
const fd = new FormData()
|
||||
fd.append('track_id', trackId)
|
||||
|
||||
Reference in new issue
Block a user