add contentRange api
This commit is contained in:
parent
d97c6ab369
commit
4e5028dc0f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue