Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 746b06e317 | |||
| 3fa131e1b2 |
@ -36,6 +36,10 @@ class <?php echo $this->apiName; ?> {
|
||||
callPromise(method, data) {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.call(method, data, function(response) {
|
||||
if (method == '__HELP__') {
|
||||
resolve(response);
|
||||
return;
|
||||
}
|
||||
if (response.status == 'OK') {
|
||||
resolve(response.data);
|
||||
} else {
|
||||
@ -61,4 +65,4 @@ class <?php echo $this->apiName; ?> {
|
||||
|
||||
};
|
||||
|
||||
export default new BackendAPI();
|
||||
export default new <?php echo $this->apiName; ?>();
|
||||
|
||||
Reference in New Issue
Block a user