Seokjin

[MERGE]Proxy setting

...@@ -3,7 +3,7 @@ import axios from "axios"; ...@@ -3,7 +3,7 @@ import axios from "axios";
3 const CLOTHES_RECOMMEND = 'weather/RECOMMEND'; 3 const CLOTHES_RECOMMEND = 'weather/RECOMMEND';
4 4
5 export function recommend(dataToSubmit) { 5 export function recommend(dataToSubmit) {
6 - const req = axios.post('http://localhost:4000/api/clothes', dataToSubmit) 6 + const req = axios.post('/api/clothes', dataToSubmit)
7 .then(res => res.data); 7 .then(res => res.data);
8 8
9 return { 9 return {
......
...@@ -6,7 +6,7 @@ const USER_LOGOUT = 'user/LOGOUT'; ...@@ -6,7 +6,7 @@ const USER_LOGOUT = 'user/LOGOUT';
6 6
7 export function register (dataToSubmit) { 7 export function register (dataToSubmit) {
8 8
9 - const req = axios.post('http://localhost:4000/api/register', dataToSubmit) 9 + const req = axios.post('/api/register', dataToSubmit)
10 .then(res => res.data); 10 .then(res => res.data);
11 11
12 return { 12 return {
...@@ -16,7 +16,7 @@ export function register (dataToSubmit) { ...@@ -16,7 +16,7 @@ export function register (dataToSubmit) {
16 }; 16 };
17 17
18 export function login(dataToSubmit) { 18 export function login(dataToSubmit) {
19 - const req = axios.post('http://localhost:4000/api/login', dataToSubmit) 19 + const req = axios.post('/api/login', dataToSubmit)
20 .then(res => res.data); 20 .then(res => res.data);
21 21
22 return { 22 return {
...@@ -26,7 +26,7 @@ export function login(dataToSubmit) { ...@@ -26,7 +26,7 @@ export function login(dataToSubmit) {
26 }; 26 };
27 27
28 export function logout(dataToSubmit) { 28 export function logout(dataToSubmit) {
29 - const req = axios.post('http://localhost:4000/api/logout', dataToSubmit) 29 + const req = axios.post('/api/logout', dataToSubmit)
30 .then(res => res.data); 30 .then(res => res.data);
31 31
32 return { 32 return {
......