diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-04-11 14:23:02 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-04-18 21:32:35 -0400 |
commit | fd6ea0e404da2657f110599061af4034a524283a (patch) | |
tree | cc993d88a040a0870ccf465209e0bb794502de88 /ext/mixed/js/api.js | |
parent | 8106f4744b07833526d16acf656eda11d29b99ad (diff) |
Add API for getting media data
Diffstat (limited to 'ext/mixed/js/api.js')
-rw-r--r-- | ext/mixed/js/api.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mixed/js/api.js b/ext/mixed/js/api.js index c97dc687..52f41646 100644 --- a/ext/mixed/js/api.js +++ b/ext/mixed/js/api.js @@ -140,6 +140,10 @@ function apiPurgeDatabase() { return _apiInvoke('purgeDatabase'); } +function apiGetMedia(targets) { + return _apiInvoke('getMedia', {targets}); +} + function _apiInvoke(action, params={}) { const data = {action, params}; return new Promise((resolve, reject) => { |