Remove youtube.js from web app
This commit is contained in:
1 parent
e20fb7df90
commit
0f6266afa4
10 files changed
+15
-262
No files matched your search
@@ -3,6 +3,11 @@ import { getHost } from "lib/Api/Host";
|
||||
export class PlayletApi {
|
||||
static host = () => `http://${getHost()}`
|
||||
|
||||
static async getVideoInfo(videoId) {
|
||||
const response = await fetch(`${PlayletApi.host()}/playlet-invidious-backend/api/v1/videos/${videoId}`);
|
||||
return await response.json();
|
||||
}
|
||||
|
||||
static async getState() {
|
||||
const response = await fetch(`${PlayletApi.host()}/api/state`);
|
||||
return await response.json();
|
||||
|
||||
Reference in new issue
Block a user