From 11ac56aa539f95706a739e7eccd4430f2cd46373 Mon Sep 17 00:00:00 2001 From: petersirka Date: Mon, 10 Feb 2025 10:19:00 +0100 Subject: [PATCH] Added missing `TotalAPI()` method. --- changelog.txt | 1 + global.js | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/changelog.txt b/changelog.txt index e7d7528..927633c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 diff --git a/global.js b/global.js index 78f65df..0793ec6 100644 --- a/global.js +++ b/global.js @@ -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; +}; \ No newline at end of file