1 parent
8975861615
commit
549913ef7d
14 files changed
+129
-20
No files matched your search
@@ -114,6 +114,20 @@ export class PlayletApi {
|
||||
return await response.json();
|
||||
}
|
||||
|
||||
static async openPlaylist(playlistId) {
|
||||
if (!playlistId) {
|
||||
return;
|
||||
}
|
||||
await fetch(`${PlayletApi.host()}/api/view/open?playlistId=${playlistId}`);
|
||||
}
|
||||
|
||||
static async openChannel(authorId) {
|
||||
if (!authorId) {
|
||||
return;
|
||||
}
|
||||
await fetch(`${PlayletApi.host()}/api/view/open?authorId=${authorId}`);
|
||||
}
|
||||
|
||||
static async getSearchHistory() {
|
||||
const response = await fetch(`${PlayletApi.host()}/api/search-history`);
|
||||
return await response.json();
|
||||
|
||||
Reference in new issue
Block a user