class ApplicationConfiguration {
    constructor() {
        this.configuratiun = require('/config.json');
        console.log(this.configuratiun);
    }

    get ApiEndpoint() {
        return this.configuratiun.ApiEndpoint;
    }

    get OldUIAddress() {
        return this.configuratiun.OldUIAddress;
    }

    get LoginPageAddress() {
        return this.configuratiun.LoginPageAddress;
    }
}

export default new ApplicationConfiguration();

@@ -54,16 +54,18 @@
         
+//
 this.con
@@ -86,16 +86,17 @@
 equire('
+.
 /config.
@@ -103,16 +103,129 @@
 json');%0A
+%0A        const json = this.loadTextFileAjaxSync('/config.json');%0A        this.configuratiun = JSON.parse(json);%0A%0A
         
@@ -509,17 +509,390 @@
 ;%0A    %7D%0A
-%7D
+%0A    loadTextFileAjaxSync(filePath)%0A    %7B%0A        const xmlhttp = new XMLHttpRequest();%0A        xmlhttp.open(%22GET%22,filePath,false);%0A%0A        xmlhttp.send();%0A%0A        if (xmlhttp.status==200 && xmlhttp.readyState == 4 )%0A        %7B%0A            return xmlhttp.responseText;%0A        %7D%0A        else %7B%0A            // TODO Throw exception%0A            return null;%0A        %7D%0A    %7D%0A%7D%0A
 %0A%0Aexport

Update configuration loading