From 4e5028dc0f2f29ecfe33b9ae4b1a00e3ad85e692 Mon Sep 17 00:00:00 2001 From: aj Date: Thu, 2 Nov 2017 22:56:53 +0000 Subject: [PATCH] add contentRange api --- js/www@daplie.com.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/js/www@daplie.com.js b/js/www@daplie.com.js index 53793be..c3d9537 100644 --- a/js/www@daplie.com.js +++ b/js/www@daplie.com.js @@ -140,6 +140,21 @@ OAUTH3._pkgs['www@daplie.com'] = { return result; }); } +, contentRange: function (opts) { + var providerUri = opts.audience; + var session = opts.session; + + return OAUTH3.request({ + method: 'GET' + , url: OAUTH3.url.normalize(providerUri) + + '/api/www@daplie.com/acl/fs/' + opts.hostname + + '?' + OAUTH3.utils.query.stringify({ tld: opts.tld, sld: opts.sld/*, sub: opts.sub*/, path: opts.path + , offset: opts.offset, length: opts.length, json: true }) + , session: session + }).then(function (result) { + return result; + }); + } , remove: function (opts) { var providerUri = opts.audience; var session = opts.session;