Skip to content

Commit

Permalink
Added missing TotalAPI() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Feb 10, 2025
1 parent 11e8b06 commit 11ac56a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- fixed `FILESTORAGE().copy(id, newid, [callback])` method
- extended `PROXY(endpoint, stream_function(ctrl))` by adding support for a custom handler
- extended `REQUEST()` by adding `opt.writer {function(res)}` option
- added missing `TotalAPI()` method

========================
0.0.8
Expand Down
6 changes: 6 additions & 0 deletions global.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,3 +299,9 @@ global.clearTimeout2 = function(id) {

return !!tmp;
};

global.TotalAPI = function(name, model, callback) {
let obj = API('TAPI', name, model);
callback && obj.callback(callback);
return obj;
};

0 comments on commit 11ac56a

Please sign in to comment.