2 Commits
v1.0.3 ... main

Author SHA1 Message Date
746b06e317 added response all result for special call __HELP__ 2025-10-16 01:39:59 +02:00
3fa131e1b2 fixed API name for export in template 2025-10-16 01:30:46 +02:00

View File

@ -36,6 +36,10 @@ class <?php echo $this->apiName; ?> {
callPromise(method, data) { callPromise(method, data) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.call(method, data, function(response) { this.call(method, data, function(response) {
if (method == '__HELP__') {
resolve(response);
return;
}
if (response.status == 'OK') { if (response.status == 'OK') {
resolve(response.data); resolve(response.data);
} else { } else {
@ -61,4 +65,4 @@ class <?php echo $this->apiName; ?> {
}; };
export default new BackendAPI(); export default new <?php echo $this->apiName; ?>();