Commit b74bbd53 authored by Konstantin Schulz's avatar Konstantin Schulz
Browse files

fixed proxy URL building issue

parent 7d1129ad
......@@ -6,7 +6,7 @@
"proxies": [
{
"path": "/mc-service",
"proxyUrl": "http://localhost:5000/mc/api/v1.0"
"proxyUrl": "http://localhost:5000/"
}
],
"type": "ionic-angular"
......
......@@ -5,7 +5,7 @@
"backendApiRawtextPath": "rawtext",
"backendApiValidReffPath": "validReff",
"backendBaseUrl": "",
"backendProxyURl": "mc-service",
"backendProxyPath": "mc-service/mc/api/v1.0",
"callidusProjectUrl": "https://www.projekte.hu-berlin.de/de/callidus",
"developerMailTo": "mailto:sulzkons@hu-berlin.de",
"localStorageKeyCorpora": "mc/corpora",
......
......@@ -20,7 +20,7 @@ export class HelperProvider {
this.http.get("assets/config.json").subscribe((config: object) => {
HelperProvider.config = config;
if (!HelperProvider.config["backendBaseUrl"]) {
HelperProvider.config["backendBaseUrl"] = location.protocol.concat("//").concat(window.location.hostname).concat(location.port ? `:${location.port}` : "").concat("/").concat(HelperProvider.config["backendProxyURl"]).concat("/");
HelperProvider.config["backendBaseUrl"] = location.protocol.concat("//").concat(window.location.hostname).concat(location.port ? `:${location.port}` : "").concat("/").concat(HelperProvider.config["backendProxyPath"]).concat("/");
}
});
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment