Add session stats to desktop app
This commit is contained in:
parent
857db0caf4
commit
93c53b4285
5 changed files with 17 additions and 3 deletions
|
|
@ -6,6 +6,7 @@ import {
|
|||
TorrentDetails,
|
||||
TorrentStats,
|
||||
ErrorDetails,
|
||||
SessionStats,
|
||||
} from "rqbit-webui/src/api-types";
|
||||
|
||||
import { InvokeArgs, invoke } from "@tauri-apps/api/tauri";
|
||||
|
|
@ -141,5 +142,8 @@ export const makeAPI = (configuration: RqbitDesktopConfig): RqbitAPI => {
|
|||
}
|
||||
return `${httpBase}/torrents/${index}/playlist`;
|
||||
},
|
||||
stats: () => {
|
||||
return invokeAPI<SessionStats>("stats");
|
||||
},
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue