feat: add get-sedding endpoint

This commit is contained in:
Hachi-R
2024-11-06 21:58:55 -03:00
parent e1a5a95ceb
commit 6295637b48
3 changed files with 48 additions and 13 deletions

View File

@@ -61,9 +61,9 @@ export class PythonInstance {
}
public static async getSeedingList() {
const response = await this.rpc.get<LibtorrentPayload>("/status");
const response = await this.rpc.get<LibtorrentPayload>("/seed-list");
return response.data.seeding;
return response.data;
}
public static async getStatus() {