Change URLs to use the current host rather than hardcoding localhost

This commit is contained in:
Liam Westby 2018-03-29 09:24:32 -05:00
parent 47ac3524e8
commit 27cb480d48

View File

@ -5,9 +5,9 @@
export const environment = {
production: false,
API_URL_AUTH: 'http://localhost:8082',
API_URL_GAME_ROUND: 'http://localhost:8080/round',
API_URL_GAME_WS: 'ws://localhost:8080/round/ws',
API_URL_PLAYERS: 'http://localhost:8081/player',
API_URL_RANKS: 'http://localhost:8081/rank'
API_URL_AUTH: `${document.location.hostname}:8082`,
API_URL_GAME_ROUND: `http://${document.location.hostname}:8080/round`,
API_URL_GAME_WS: `ws://${document.location.hostname}:8080/round/ws`,
API_URL_PLAYERS: `http://${document.location.hostname}:8081/player`,
API_URL_RANKS: `http://${document.location.hostname}:8081/rank`
};