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:17:35 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
45848631716b0412da37e7c0b54167063e4d43f6
45848631
1 parent
d58a5908
[MERGE]Proxy setting
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
weather_briefing/src/modules/clothes.js
weather_briefing/src/modules/user.js
weather_briefing/src/modules/clothes.js
View file @
4584863
...
...
@@ -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
{
...
...
weather_briefing/src/modules/user.js
View file @
4584863
...
...
@@ -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
{
...
...
Please
register
or
login
to post a comment