mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Implemented looping
This commit is contained in:
1 parent
f88f1932dc
commit
9dc020140a
12 files changed
+847
-143
No files matched your search
@@ -218,6 +218,15 @@ export const api = {
|
||||
audioUrl: (trackId: string) => `/api/tracks/audio?track_id=${encodeURIComponent(trackId)}`,
|
||||
trackCues: (trackId: string) =>
|
||||
getJSON<TrackCues>(`/api/tracks/cues?track_id=${encodeURIComponent(trackId)}`),
|
||||
createHotcue: (trackId: string, slot: number, start: number, type: number) =>
|
||||
send<TrackCues>('POST', '/api/tracks/hotcue', { track_id: trackId, slot, start, type }),
|
||||
setHotcueType: (trackId: string, slot: number, type: number) =>
|
||||
send<TrackCues>('PATCH', '/api/tracks/hotcue', { track_id: trackId, slot, type }),
|
||||
deleteHotcue: (trackId: string, slot: number) =>
|
||||
send<TrackCues>(
|
||||
'DELETE',
|
||||
`/api/tracks/hotcue?track_id=${encodeURIComponent(trackId)}&slot=${slot}`,
|
||||
),
|
||||
uploadArt: async (trackId: string, file: File) => {
|
||||
const fd = new FormData()
|
||||
fd.append('track_id', trackId)
|
||||
|
||||
Reference in new issue
Block a user