diff --git a/frontend/src/pages/Main.js b/frontend/src/pages/Main.js index 559790b64738c46f25ae91951d9df8b05f1a1224..6f29dc0436b022a414a6a609c9fe3b304dfff579 100644 --- a/frontend/src/pages/Main.js +++ b/frontend/src/pages/Main.js @@ -52,11 +52,7 @@ function Main() { async function requestLoadArticle() { const response = await axios({ -<<<<<<< HEAD url: 'http://localhost:8080/article', // 통신할 웹문서 -======= - url: 'http://localhost:8080/post/article', // 통신할 웹문서 ->>>>>>> 2892e0e9c9dd1752080a370ba274deeca6254246 method: 'get', // 통신할 방식 }); return response; diff --git a/frontend/src/pages/PostRead.js b/frontend/src/pages/PostRead.js index 1aae62a8f492b180a2937fcb6731609dde9e5cc0..54dab046f44782054b8e4cbe4fe1444f44315aa6 100644 --- a/frontend/src/pages/PostRead.js +++ b/frontend/src/pages/PostRead.js @@ -57,20 +57,10 @@ function PostRead() { }); } -<<<<<<< HEAD - async function requestLoadArticleById(id) { - const response = await axios({ - url: `http://localhost:8080/article/${id}`, // 통신할 웹문서 - method: 'get', // 통신할 방식 - }); - return response; - } -======= const onTextChange = (e) => { const {value} = e.target; setInputComment(value); } ->>>>>>> 2892e0e9c9dd1752080a370ba274deeca6254246 const onSubmit = e => { e.preventDefault();