diff --git a/Uri/Http.js b/Uri/Http.js index 259e78a..6c02e01 100644 --- a/Uri/Http.js +++ b/Uri/Http.js @@ -185,6 +185,12 @@ // todo: needs + rootPath at the end but how to define? maybe look at inline js uri is defined there?! this.base = this.scheme + '://' + this.host; }; + + jsOMS.Uri.Http.prototype.setRootPath = function(rootPath) + { + this.root = rootPath; + this.set(this.uri); + }; jsOMS.Uri.Http.prototype.getBase = function() { @@ -235,4 +241,4 @@ { return this.path; } -}(window.jsOMS = window.jsOMS || {})); \ No newline at end of file +}(window.jsOMS = window.jsOMS || {}));