Skip to content
Snippets Groups Projects
Commit 8fb2cfa0 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Remove unused apiUrlPrefix

parent 39352135
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,6 @@ switch(environment) { ...@@ -6,7 +6,6 @@ switch(environment) {
case "development": case "development":
config = { config = {
apiBaseUrl: 'https://mw-dev.tugraz.at', apiBaseUrl: 'https://mw-dev.tugraz.at',
apiUrlPrefix: '',
keyCloakBaseURL: 'https://auth-dev.tugraz.at/auth', keyCloakBaseURL: 'https://auth-dev.tugraz.at/auth',
keyCloakRealm: 'tugraz', keyCloakRealm: 'tugraz',
keyCloakClientId: 'auth-dev-mw-frontend', keyCloakClientId: 'auth-dev-mw-frontend',
...@@ -17,7 +16,6 @@ switch(environment) { ...@@ -17,7 +16,6 @@ switch(environment) {
case "demo": case "demo":
config = { config = {
apiBaseUrl: 'https://api-demo.tugraz.at', apiBaseUrl: 'https://api-demo.tugraz.at',
apiUrlPrefix: '',
keyCloakBaseURL: 'https://auth-test.tugraz.at/auth', keyCloakBaseURL: 'https://auth-test.tugraz.at/auth',
keyCloakRealm: 'tugraz', keyCloakRealm: 'tugraz',
keyCloakClientId: 'ibib-demo_tugraz_at-IBIB', keyCloakClientId: 'ibib-demo_tugraz_at-IBIB',
...@@ -26,7 +24,6 @@ switch(environment) { ...@@ -26,7 +24,6 @@ switch(environment) {
case "production": case "production":
config = { config = {
apiBaseUrl: 'https://api.tugraz.at', apiBaseUrl: 'https://api.tugraz.at',
apiUrlPrefix: '',
keyCloakBaseURL: 'https://auth.tugraz.at/auth', keyCloakBaseURL: 'https://auth.tugraz.at/auth',
keyCloakRealm: 'tugraz', keyCloakRealm: 'tugraz',
keyCloakClientId: 'ibib_tugraz_at-IBIB', keyCloakClientId: 'ibib_tugraz_at-IBIB',
...@@ -36,7 +33,6 @@ switch(environment) { ...@@ -36,7 +33,6 @@ switch(environment) {
default: default:
config = { config = {
apiBaseUrl: 'http://127.0.0.1:8000', apiBaseUrl: 'http://127.0.0.1:8000',
apiUrlPrefix: '',
keyCloakBaseURL: 'https://auth-dev.tugraz.at/auth', keyCloakBaseURL: 'https://auth-dev.tugraz.at/auth',
keyCloakRealm: 'tugraz', keyCloakRealm: 'tugraz',
keyCloakClientId: 'auth-dev-mw-frontend-local', keyCloakClientId: 'auth-dev-mw-frontend-local',
......
...@@ -40,8 +40,8 @@ export const setting = (key) => { ...@@ -40,8 +40,8 @@ export const setting = (key) => {
return env[key]; return env[key];
}; };
export const getAPiUrl = (path = "", withPrefix = true) => { export const getAPiUrl = (path = "") => {
return env.apiBaseUrl + (withPrefix ? env.apiUrlPrefix : "") + path; return env.apiBaseUrl + path;
}; };
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment