Merge branch 'oauth3' of git.daplie.com:Daplie/walnut_launchpad into jon/design2

This commit is contained in:
Jon Lambson 2017-10-02 13:13:41 -06:00
commit 5196f55629
1 changed files with 8 additions and 2 deletions

View File

@ -12,7 +12,10 @@ OAUTH3._pkgs['www@daplie.com'] = {
method: 'POST'
, url: OAUTH3.url.normalize(providerUri)
+ '/api/www@daplie.com/acl/sites/' + opts.hostname
+ '?' + OAUTH3.utils.query.stringify({ tld: opts.tld, sld: opts.sld/*, sub: opts.sub*/, unzip: opts.unzip, strip: opts.strip, path: opts.path })
+ '?' + OAUTH3.utils.query.stringify({
tld: opts.tld, sld: opts.sld/*, sub: opts.sub*/, unzip: opts.unzip
, strip: opts.strip, path: opts.path
})
, session: session
, multipart: opts.multipart // special property to be figured out by browser request code
, progress: opts.progress
@ -145,7 +148,10 @@ OAUTH3._pkgs['www@daplie.com'] = {
method: 'DELETE'
, url: OAUTH3.url.normalize(providerUri)
+ '/api/www@daplie.com/acl/sites/' + opts.hostname
+ '?' + OAUTH3.utils.query.stringify({ tld: opts.tld, sld: opts.sld/*, sub: opts.sub*/, path: opts.path })
+ '?' + OAUTH3.utils.query.stringify({
tld: opts.tld, sld: opts.sld/*, sub: opts.sub*/
, path: opts.path, confirm: opts.confirm
})
, session: session
, multipart: opts.multipart // special property to be figured out by browser request code
}).then(function (result) {