Skip to content

Commit

Permalink
Merge pull request #107 from codesquad-members-2023/release-fe
Browse files Browse the repository at this point in the history
SSH 포트 지정
  • Loading branch information
CDBchan authored Nov 2, 2023
2 parents 13a9203 + 8dfb50d commit 646d07e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions fe/src/constants/Endpoints.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
export const BASE_URL =
"http://ec2-54-180-81-108.ap-northeast-2.compute.amazonaws.com";
export const BASE_WEB_SOCKET_URL =
export const BASE_URL_WITH_PORT =
"http://ec2-54-180-81-108.ap-northeast-2.compute.amazonaws.com:8080";
export const WEB_SOCKET_URL =
"ws://ec2-54-180-81-108.ap-northeast-2.compute.amazonaws.com:8080";
export const API_ENDPOINTS = {
LOGIN: (queryString) =>
Expand Down Expand Up @@ -33,11 +35,11 @@ export const API_ENDPOINTS = {
"https://nid.naver.com/oauth2.0/authorize?response_type=code&client_id=f_R370DxKoDfmyYZB2X0&redirect_uri=http://ec2-54-180-81-108.ap-northeast-2.compute.amazonaws.com/callback",
MATCHING: (groupId) => `${BASE_URL}/api/chats/random/${groupId}`,
CHAT_DETAIL: (chatRoomId) => `${BASE_URL}/api/chats/${chatRoomId}`,
WEB_SOCKET: `${BASE_WEB_SOCKET_URL}/ws`,
WEB_SOCKET: `${WEB_SOCKET_URL}/ws`,
STOMP_SUBSCRIBE: (chatRoomId) => `/sub/chatRoom/${chatRoomId}`,
STOMP_SEND: `/pub/message`,
CHAT_LIST: (groupId) =>
`${BASE_URL}/api/chats${groupId ? `?groupId=${groupId}` : ""}`,
SSH_CONNECTION: (memberId) => `${BASE_URL}/connect/${memberId}`,
SSH_CONNECTION: (memberId) => `${BASE_URL_WITH_PORT}/connect/${memberId}`,
CHAT_ROOM_DELETE: (chatRoomId) => `${BASE_URL}/api/chats/${chatRoomId}`,
};

0 comments on commit 646d07e

Please sign in to comment.