Remove backend url from frontend config api call

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
Tilman Vatteroth 2020-05-23 23:20:22 +02:00 committed by mrdrogdrog
parent 8e291a7b34
commit d51f62221f

View file

@ -9,7 +9,7 @@ export const getBackendConfig = async () => {
} }
export const getFrontendConfig = async () => { export const getFrontendConfig = async () => {
return fetch(getBackendUrl() + '/config.json') return fetch('config.json')
.then(expectResponseCode()) .then(expectResponseCode())
.then(response => response.json() as Promise<FrontendConfigState>); .then(response => response.json() as Promise<FrontendConfigState>);
} }