Remove youtube.js from web app

This commit is contained in:
Brahim Hadriche committed 2024-12-24 11:36:57 -05:00
1 parent e20fb7df90
commit 0f6266afa4
10 files changed
+15 -262

No files matched your search

+5
View File
@@ -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();