diff --git a/src/components/Modal/JoinLeague/JoinLeague.tsx b/src/components/Modal/JoinLeague/JoinLeague.tsx index dfd26ef..b727732 100644 --- a/src/components/Modal/JoinLeague/JoinLeague.tsx +++ b/src/components/Modal/JoinLeague/JoinLeague.tsx @@ -30,10 +30,8 @@ const JoinLeague = ({ onClose, channelLink }: JoinLeagueProps) => { return; } - const concatGameId = gameIdVal + '#' + gameTagVal; - const userTier: string = ( - await authAPI.get(SERVER_URL + '/api/participant/stat?gameid=' + concatGameId) + await authAPI.get(SERVER_URL + `/api/participant/stat/${gameIdVal}/${gameTagVal}`) ).data.tier; setTier(userTier); setGameId(gameIdVal); diff --git a/src/config/index.ts b/src/config/index.ts index 7ce77fe..4917907 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -1,5 +1,5 @@ -let SERVER_URL = 'http://3.38.168.158:8080'; -const SOCKET_URL = 'ws://3.38.168.158:8080/ws/websocket'; +let SERVER_URL = 'http://leaguehub.co.kr'; +const SOCKET_URL = 'ws://leaguehub.co.kr/ws/websocket'; if (process.env.NODE_ENV === 'development') { SERVER_URL = 'http://localhost:8080';