Add support for casting clips from web app

This commit is contained in:
Brahim Hadriche committed 2024-09-20 11:53:21 -04:00
1 parent a0efb3bd76
commit 463b38200b
3 files changed
+41

No files matched your search

+5
View File
@@ -52,6 +52,11 @@ export class InvidiousApi {
return await response.json();
}
public async getClipMetadata(clipId: string) {
const response = await fetch(`${this.instance}/api/v1/clips/${clipId}`);
return await response.json();
}
public async getChannelMetadata(ucid: string) {
const response = await fetch(`${this.instance}/api/v1/channels/${ucid}`);
return await response.json();