From 278c35d7d2bfbf1891cc0dfbe08ef0a12bd9a159 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 31 May 2017 10:20:03 +0200 Subject: [PATCH] Added setRootPath --- Uri/Http.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 || {}));