diff --git a/backend/src/index.js b/backend/src/index.js index ad59141554c64fcaff26deefdafd4f3b7518e1b8..7f18aecec00b990ebba5f9ffc534784242c25076 100644 --- a/backend/src/index.js +++ b/backend/src/index.js @@ -32,7 +32,7 @@ app.use(session({ })) app.use( cors({ - origin: 'http://localhost:3000', + origin: 'http://13.125.128.95:3000', credentials: true, }) ); //cors �ㅼ젙�� �쒕떎.. diff --git a/frontend/src/App.js b/frontend/src/App.js index f4a0442b813612d6d8477e8256518dca890b01ac..1dbe2e86933b3c130af68b94f7de4b8f836c262a 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -82,7 +82,7 @@ function App() { async function requestLogout() { const response = await axios({ - url: 'http://localhost:8080/auth/logout', // �듭떊�� �밸Ц�� + url: 'http://13.125.128.95:8080/auth/logout', // �듭떊�� �밸Ц�� method: 'get', // �듭떊�� 諛⑹떇 }); return response; @@ -90,7 +90,7 @@ async function requestLogout() { async function requestCheckSession() { const response = await axios({ - url: 'http://localhost:8080/auth/session', // �듭떊�� �밸Ц�� + url: 'http://13.125.128.95:8080/auth/session', // �듭떊�� �밸Ц�� method: 'get', // �듭떊�� 諛⑹떇 }); return response; diff --git a/frontend/src/components/Comment.js b/frontend/src/components/Comment.js index d945a6853f51765b1499181e70b3a2672c784e3c..e29911bbb70621956ab6418e4f3838b2ea20f171 100644 --- a/frontend/src/components/Comment.js +++ b/frontend/src/components/Comment.js @@ -24,7 +24,7 @@ function Comments({ data }) { function DeleteComment(e) { const data = { id: _id } axios - .delete(`http://localhost:8080/article/${params.id}/comment/${_id}`, data, + .delete(`http://13.125.128.95:8080/article/${params.id}/comment/${_id}`, data, { headers: { "Content-Type": 'application/json' } }) diff --git a/frontend/src/components/GoogleLoginButton.js b/frontend/src/components/GoogleLoginButton.js index 0a8be540e0113e3c4a7e2448c83e52b875689e4b..dd147c6236275f88a0c808d882d41bea42d00869 100644 --- a/frontend/src/components/GoogleLoginButton.js +++ b/frontend/src/components/GoogleLoginButton.js @@ -60,7 +60,7 @@ function b64DecodeUnicode(str) { async function requestLogin(payloadObj) { const response = await axios({ - url: 'http://localhost:8080/auth/login', // �듭떊�� �밸Ц�� + url: 'http://13.125.128.95:8080/auth/login', // �듭떊�� �밸Ц�� method: 'post', // �듭떊�� 諛⑹떇 data: payloadObj }); diff --git a/frontend/src/pages/Main.js b/frontend/src/pages/Main.js index 2757d01a1530b23449b62e277e0e0f5d7e77a7fa..5a36dcb952f380fda26c2be7e1daeed1123219a7 100644 --- a/frontend/src/pages/Main.js +++ b/frontend/src/pages/Main.js @@ -63,7 +63,7 @@ function Main() { async function requestSortArticle(crit) { const response = await axios({ - url: `http://localhost:8080/article/?criteria=${crit}`, // �듭떊�� �밸Ц�� + url: `http://13.125.128.95:8080/article/?criteria=${crit}`, // �듭떊�� �밸Ц�� method: 'get', // �듭떊�� 諛⑹떇 }); return response; diff --git a/frontend/src/pages/MyPage.js b/frontend/src/pages/MyPage.js index be8f413d321c40478f6e4923aeca5ba26ff49502..e1f8b347c4b543c7b881ed0fba72aa0a4b3f460b 100644 --- a/frontend/src/pages/MyPage.js +++ b/frontend/src/pages/MyPage.js @@ -43,7 +43,7 @@ function MyPage() { async function requestArticles(id) { const response = await axios({ - url: `http://localhost:8080/article/user/${id}`, // �듭떊�� �밸Ц�� + url: `http://13.125.128.95:8080/article/user/${id}`, // �듭떊�� �밸Ц�� method: 'get', // �듭떊�� 諛⑹떇 }); return response; diff --git a/frontend/src/pages/PostRead.js b/frontend/src/pages/PostRead.js index a017827080992fd4fdf97086243ad3ffdadfc22e..6205476c52827548d3a69da4385817c66af4bb28 100644 --- a/frontend/src/pages/PostRead.js +++ b/frontend/src/pages/PostRead.js @@ -45,7 +45,7 @@ function PostRead() { }, []); function SetLike() { - axios.put(`http://localhost:8080/article/${params.id}/like`) + axios.put(`http://13.125.128.95:8080/article/${params.id}/like`) .then(res => { return requestLoadArticleById(params.id) }) @@ -69,7 +69,7 @@ function PostRead() { return } const data = { content: inputComment } - axios.post(`http://localhost:8080/article/${params.id}/comment`, data, + axios.post(`http://13.125.128.95:8080/article/${params.id}/comment`, data, { headers: { "Content-Type": 'application/json' } }) @@ -146,7 +146,7 @@ function PostRead() { async function requestLoadArticleById(id) { const response = await axios({ - url: `http://localhost:8080/article/${id}`, // �듭떊�� �밸Ц�� + url: `http://13.125.128.95:8080/article/${id}`, // �듭떊�� �밸Ц�� method: 'get', // �듭떊�� 諛⑹떇 }); return response; @@ -154,7 +154,7 @@ async function requestLoadArticleById(id) { async function requestDeleteArticleById(id) { const response = await axios({ - url: `http://localhost:8080/article/${id}`, // �듭떊�� �밸Ц�� + url: `http://13.125.128.95:8080/article/${id}`, // �듭떊�� �밸Ц�� method: 'delete', // �듭떊�� 諛⑹떇 }); return response; diff --git a/frontend/src/pages/PostWrite.js b/frontend/src/pages/PostWrite.js index 4881cd140272fa961b97f8e1c99473800766fb04..115e628b8defc0fcacd0c1e6bac0660e4852abe7 100644 --- a/frontend/src/pages/PostWrite.js +++ b/frontend/src/pages/PostWrite.js @@ -113,7 +113,7 @@ function PostWrite() { formData.append("latitude", location.center.lat); formData.append("longitude", location.center.lng); axios - .post("http://localhost:8080/article", formData, + .post("http://13.125.128.95:8080/article", formData, { headers: { "Content-Type": "multipart/form-data" } }) diff --git a/frontend/src/pages/Search.js b/frontend/src/pages/Search.js index ccab414f35f6a7e6baa9a5d6f48b6f33ecfaf61c..0307f118865440d9253e04a94488616c602ceffc 100644 --- a/frontend/src/pages/Search.js +++ b/frontend/src/pages/Search.js @@ -86,7 +86,7 @@ function Search(props) { async function requestLoadArticleByKeyword(keyword) { const response = await axios({ - url: `http://localhost:8080/article/?keyword=${keyword}`, // �듭떊�� �밸Ц�� + url: `http://13.125.128.95:8080/article/?keyword=${keyword}`, // �듭떊�� �밸Ц�� method: 'get', // �듭떊�� 諛⑹떇 }); return response;