UI link to video files

This commit is contained in:
Igor Katson 2024-04-24 22:55:56 +01:00
parent f0788f2c4a
commit 94589a21fe
11 changed files with 64 additions and 19 deletions

View file

@ -140,4 +140,7 @@ export const API: RqbitAPI & { getVersion: () => Promise<string> } = {
const r = await makeRequest("GET", "/");
return r.version;
},
getTorrentStreamUrl: (index: number, file_id: number) => {
return apiUrl + `/torrents/${index}/stream/${file_id}`;
},
};