Skip to content
Snippets Groups Projects
Commit f6b37362 authored by Hyun Woo Jeong's avatar Hyun Woo Jeong
Browse files

url changing

parent 70eec141
Branches hgb-wip
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ app.use(session({
}))
app.use(
cors({
origin: 'http://localhost:3000',
origin: 'http://13.125.128.95:3000',
credentials: true,
})
); //cors 설정을 한다..
......
......@@ -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;
......
......@@ -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' }
})
......
......@@ -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
});
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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" }
})
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment