🔧 Added more data to the return value of getClientInfo

This commit is contained in:
2023-09-16 15:36:43 -04:00
parent 104e7ba0bb
commit 3676bb0699

View File

@@ -37,8 +37,14 @@ export default class QBittorrentService extends Service {
getClientInfo: {
rest: "GET /getClientInfo",
handler: async (ctx: Context<{}>) => {
return await this.meta.app.buildInfo();
},
console.log(this.meta.app);
return {
buildInfo: await this.meta.app.buildInfo(),
version: await this.meta.app.version(),
webAPIVersion: await this.meta.app.webapiVersion(),
}
}
},
},
methods: {},