Seokjin

[MERGE]Proxy setting

......@@ -3,7 +3,7 @@ import axios from "axios";
const CLOTHES_RECOMMEND = 'weather/RECOMMEND';
export function recommend(dataToSubmit) {
const req = axios.post('http://localhost:4000/api/clothes', dataToSubmit)
const req = axios.post('/api/clothes', dataToSubmit)
.then(res => res.data);
return {
......
......@@ -6,7 +6,7 @@ const USER_LOGOUT = 'user/LOGOUT';
export function register (dataToSubmit) {
const req = axios.post('http://localhost:4000/api/register', dataToSubmit)
const req = axios.post('/api/register', dataToSubmit)
.then(res => res.data);
return {
......@@ -16,7 +16,7 @@ export function register (dataToSubmit) {
};
export function login(dataToSubmit) {
const req = axios.post('http://localhost:4000/api/login', dataToSubmit)
const req = axios.post('/api/login', dataToSubmit)
.then(res => res.data);
return {
......@@ -26,7 +26,7 @@ export function login(dataToSubmit) {
};
export function logout(dataToSubmit) {
const req = axios.post('http://localhost:4000/api/logout', dataToSubmit)
const req = axios.post('/api/logout', dataToSubmit)
.then(res => res.data);
return {
......