Seokjin

[MERGE]Proxy setting

......@@ -2,6 +2,7 @@
"name": "weather_briefing",
"version": "0.1.0",
"private": true,
"proxy":"http://34.192.43.144:4000",
"dependencies": {
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.2.0",
......
......@@ -6,7 +6,7 @@ const WEATHER_TODAY_INFORMATION = 'weather/TODAY_INFORMATION';
const WEATHER_TOMMORROW_INFORMATION = 'weather/TOMMORROW_INFORMATION';
export function address() {
const req = axios.post('http://localhost:4000/api/address')
const req = axios.post('/api/address')
.then(res => res.data);
return {
......@@ -17,7 +17,7 @@ export function address() {
export function coordinate(dataToSubmit) {
const req = axios.post('http://localhost:4000/api/cordinate', dataToSubmit)
const req = axios.post('/api/cordinate', dataToSubmit)
.then(res => res.data);
return {
......@@ -27,7 +27,7 @@ export function coordinate(dataToSubmit) {
};
export function todayInformation(dataToSubmit) {
const req = axios.post('http://localhost:4000/api/weather', dataToSubmit)
const req = axios.post('/api/weather', dataToSubmit)
.then(res => res.data);
return {
type: WEATHER_TODAY_INFORMATION,
......@@ -36,7 +36,7 @@ export function todayInformation(dataToSubmit) {
};
export function tommorrowInformation(dataToSubmit) {
const req = axios.post('http://localhost:4000/api/tommorrow', dataToSubmit)
const req = axios.post('/api/tommorrow', dataToSubmit)
.then(res => res.data);
return {
type: WEATHER_TOMMORROW_INFORMATION,
......