SUPPORT-9084: change backend-context path
This commit is contained in:
parent
bafe64e6af
commit
bf3404c551
2 changed files with 2 additions and 8 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
"filter_cleanup_check_period_minutes": 30,
|
"filter_cleanup_check_period_minutes": 30,
|
||||||
"auth_method": "form",
|
"auth_method": "form",
|
||||||
"enable.version.in.url": "%enable.version.in.url%",
|
"enable.version.in.url": "%enable.version.in.url%",
|
||||||
"backend.context": "account-applications",
|
"backend.context": "/service/account-applications",
|
||||||
"guard.confirm_exit": false,
|
"guard.confirm_exit": false,
|
||||||
"message_service_error_timeout": "",
|
"message_service_error_timeout": "",
|
||||||
"message_service_warning_timeout": "",
|
"message_service_warning_timeout": "",
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,6 @@ import {
|
||||||
TokenHeaderUtil
|
TokenHeaderUtil
|
||||||
} from "@webbpm/base-package";
|
} from "@webbpm/base-package";
|
||||||
import {Observable} from "rxjs";
|
import {Observable} from "rxjs";
|
||||||
import {MfeConfigurationProvider} from "../provider/mfe-configuration.provider";
|
|
||||||
import {joinPath} from "../../../mfe-app-tools";
|
|
||||||
|
|
||||||
|
|
||||||
export class MfeHttpBackendInterceptor implements HttpInterceptor {
|
export class MfeHttpBackendInterceptor implements HttpInterceptor {
|
||||||
private static readonly CONTENT_TYPE_HEADER = 'Content-Type';
|
private static readonly CONTENT_TYPE_HEADER = 'Content-Type';
|
||||||
|
|
@ -41,10 +38,7 @@ export class MfeHttpBackendInterceptor implements HttpInterceptor {
|
||||||
url = backendUrl;
|
url = backendUrl;
|
||||||
}
|
}
|
||||||
else if (backendContext) {
|
else if (backendContext) {
|
||||||
url = joinPath(
|
url = backendContext;
|
||||||
MfeConfigurationProvider.MFE_BASE_URL,
|
|
||||||
backendContext
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
url = ApplicationSettingsProvider.BACKEND_URL;
|
url = ApplicationSettingsProvider.BACKEND_URL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue