Seokjin

[MERGE]Proxy setting

...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
2 "name": "weather_briefing", 2 "name": "weather_briefing",
3 "version": "0.1.0", 3 "version": "0.1.0",
4 "private": true, 4 "private": true,
5 + "proxy":"http://34.192.43.144:4000",
5 "dependencies": { 6 "dependencies": {
6 "@testing-library/jest-dom": "^5.16.4", 7 "@testing-library/jest-dom": "^5.16.4",
7 "@testing-library/react": "^13.2.0", 8 "@testing-library/react": "^13.2.0",
......
...@@ -6,7 +6,7 @@ const WEATHER_TODAY_INFORMATION = 'weather/TODAY_INFORMATION'; ...@@ -6,7 +6,7 @@ const WEATHER_TODAY_INFORMATION = 'weather/TODAY_INFORMATION';
6 const WEATHER_TOMMORROW_INFORMATION = 'weather/TOMMORROW_INFORMATION'; 6 const WEATHER_TOMMORROW_INFORMATION = 'weather/TOMMORROW_INFORMATION';
7 7
8 export function address() { 8 export function address() {
9 - const req = axios.post('http://localhost:4000/api/address') 9 + const req = axios.post('/api/address')
10 .then(res => res.data); 10 .then(res => res.data);
11 11
12 return { 12 return {
...@@ -17,7 +17,7 @@ export function address() { ...@@ -17,7 +17,7 @@ export function address() {
17 17
18 export function coordinate(dataToSubmit) { 18 export function coordinate(dataToSubmit) {
19 19
20 - const req = axios.post('http://localhost:4000/api/cordinate', dataToSubmit) 20 + const req = axios.post('/api/cordinate', dataToSubmit)
21 .then(res => res.data); 21 .then(res => res.data);
22 22
23 return { 23 return {
...@@ -27,7 +27,7 @@ export function coordinate(dataToSubmit) { ...@@ -27,7 +27,7 @@ export function coordinate(dataToSubmit) {
27 }; 27 };
28 28
29 export function todayInformation(dataToSubmit) { 29 export function todayInformation(dataToSubmit) {
30 - const req = axios.post('http://localhost:4000/api/weather', dataToSubmit) 30 + const req = axios.post('/api/weather', dataToSubmit)
31 .then(res => res.data); 31 .then(res => res.data);
32 return { 32 return {
33 type: WEATHER_TODAY_INFORMATION, 33 type: WEATHER_TODAY_INFORMATION,
...@@ -36,7 +36,7 @@ export function todayInformation(dataToSubmit) { ...@@ -36,7 +36,7 @@ export function todayInformation(dataToSubmit) {
36 }; 36 };
37 37
38 export function tommorrowInformation(dataToSubmit) { 38 export function tommorrowInformation(dataToSubmit) {
39 - const req = axios.post('http://localhost:4000/api/tommorrow', dataToSubmit) 39 + const req = axios.post('/api/tommorrow', dataToSubmit)
40 .then(res => res.data); 40 .then(res => res.data);
41 return { 41 return {
42 type: WEATHER_TOMMORROW_INFORMATION, 42 type: WEATHER_TOMMORROW_INFORMATION,
......