better path passing

This commit is contained in:
Jon Lambson 2017-11-07 15:12:22 -07:00
parent 057de03068
commit 67c4e8663f
2 changed files with 5 additions and 1 deletions

View File

@ -435,7 +435,9 @@ app.controller('websiteCtrl', [
};
vm.Sites.fileContents = function (file, r) {
var path = vm.breadcrumbsPath.join('/') + file;
var path = vm.breadcrumbsPath;
path.push(file);
path = path.join('/');
cleanPathQuery(path);
var pkg = Auth.oauth3.pkg('www@daplie.com');
return pkg.contentRange({

View File

@ -144,6 +144,7 @@ OAUTH3._pkgs['www@daplie.com'] = {
, contentRange: function (opts) {
var providerUri = opts.audience;
var session = opts.session;
debugger;
return OAUTH3.request({
method: 'GET'
@ -153,6 +154,7 @@ OAUTH3._pkgs['www@daplie.com'] = {
, offset: opts.offset, length: opts.length, json: true })
, session: session
}).then(function (result) {
debugger;
return result;
});
}