better path passing
This commit is contained in:
parent
057de03068
commit
67c4e8663f
|
@ -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({
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue