mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-07 12:57:14 +00:00
1 parent
15a3bf48d9
commit
651c0fdf14
4 files changed
+22
No files matched your search
@@ -56,6 +56,21 @@
|
||||
return new Resource(this._http, this._q, '/' + path.join('/'), this._activeUser);
|
||||
};
|
||||
|
||||
/**
|
||||
* @function path
|
||||
* @memberof Resource.prototype
|
||||
* @desc Create a URL of the resource context with any number of additional segments
|
||||
* @return an absolute URL
|
||||
*/
|
||||
Resource.prototype.path = function() {
|
||||
var path = [this._path];
|
||||
|
||||
if (arguments.length > 0)
|
||||
Array.prototype.push.apply(path, Array.prototype.slice.call(arguments));
|
||||
|
||||
return path.join('/');
|
||||
};
|
||||
|
||||
/**
|
||||
* @function fetch
|
||||
* @memberof Resource.prototype
|
||||
|
||||
Reference in new issue
Block a user