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

fixed proxy URL building issue

parent 7d1129ad
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"proxies": [ "proxies": [
{ {
"path": "/mc-service", "path": "/mc-service",
"proxyUrl": "http://localhost:5000/mc/api/v1.0" "proxyUrl": "http://localhost:5000/"
} }
], ],
"type": "ionic-angular" "type": "ionic-angular"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"backendApiRawtextPath": "rawtext", "backendApiRawtextPath": "rawtext",
"backendApiValidReffPath": "validReff", "backendApiValidReffPath": "validReff",
"backendBaseUrl": "", "backendBaseUrl": "",
"backendProxyURl": "mc-service", "backendProxyPath": "mc-service/mc/api/v1.0",
"callidusProjectUrl": "https://www.projekte.hu-berlin.de/de/callidus", "callidusProjectUrl": "https://www.projekte.hu-berlin.de/de/callidus",
"developerMailTo": "mailto:sulzkons@hu-berlin.de", "developerMailTo": "mailto:sulzkons@hu-berlin.de",
"localStorageKeyCorpora": "mc/corpora", "localStorageKeyCorpora": "mc/corpora",
......
...@@ -20,7 +20,7 @@ export class HelperProvider { ...@@ -20,7 +20,7 @@ export class HelperProvider {
this.http.get("assets/config.json").subscribe((config: object) => { this.http.get("assets/config.json").subscribe((config: object) => {
HelperProvider.config = config; HelperProvider.config = config;
if (!HelperProvider.config["backendBaseUrl"]) { 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("/");
} }
}); });
} }
......
Markdown is supported
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