Add support for casting clips from web app
This commit is contained in:
1 parent
a0efb3bd76
commit
463b38200b
3 files changed
+41
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user