Merge branch 'v1.2' of git.daplie.com:Daplie/walnut_launchpad into jon/upload-directives

This commit is contained in:
Jon Lambson 2017-11-03 10:12:50 -06:00
commit efa628b099
1 changed files with 15 additions and 0 deletions

View File

@ -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;