Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김건희
/
OSSW_Weather_Briefing
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Seokjin
2022-06-09 14:12:34 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d58a59088aac22f8bcc5c75c23b060edf602faad
d58a5908
1 parent
00d67995
[MERGE]Proxy setting
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
weather_briefing/package.json
weather_briefing/src/modules/weather.js
weather_briefing/package.json
View file @
d58a590
...
...
@@ -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"
,
...
...
weather_briefing/src/modules/weather.js
View file @
d58a590
...
...
@@ -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
,
...
...
Please
register
or
login
to post a comment