Added resources to base path
This commit is contained in:
@@ -11,7 +11,7 @@ function SwaggerService(baseUrl, _apiKey, statusCallback) {
|
|||||||
if(!(baseUrl.toLowerCase().indexOf("http:") == 0 || baseUrl.toLowerCase().indexOf("https:") == 0)) {
|
if(!(baseUrl.toLowerCase().indexOf("http:") == 0 || baseUrl.toLowerCase().indexOf("https:") == 0)) {
|
||||||
baseUrl = ("http://" + baseUrl);
|
baseUrl = ("http://" + baseUrl);
|
||||||
}
|
}
|
||||||
|
baseUrl = baseUrl + "/resources.json"
|
||||||
log("using base url " + baseUrl);
|
log("using base url " + baseUrl);
|
||||||
|
|
||||||
var apiHost = baseUrl.substr(0, baseUrl.lastIndexOf("/"));
|
var apiHost = baseUrl.substr(0, baseUrl.lastIndexOf("/"));
|
||||||
|
|||||||
Reference in New Issue
Block a user