Make subscription work

This commit is contained in:
2026-05-04 23:55:41 +02:00
parent 141618f2cd
commit 54bae3e9c9
8 changed files with 41 additions and 23 deletions
+6 -1
View File
@@ -9,6 +9,11 @@ export default class Api {
}
async get(action, params = {}) {
const response = await this.request(action, params);
return response.data;
}
async request(action, params = {}) {
const requestParams = {
...params,
a: action,
@@ -34,6 +39,6 @@ export default class Api {
throw response.desc;
}
return response.data;
return response;
}
}