Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
bora-it
Commits
ef936644
Commit
ef936644
authored
Jul 16, 2021
by
seoyeon
Browse files
머지
parent
6e0a46de
Changes
1
Hide whitespace changes
Inline
Side-by-side
client/src/apis/user.api.js
View file @
ef936644
...
...
@@ -5,12 +5,11 @@ const login = async (payload) => {
return
data
;
};
// const signup = async (email, password) => {
// const payload = { email, password, phone, gender } = req.body;
// const { data } = await axios.post(`${endpoints.API_BASE_URL}/`, payload);
// return data;
// }
export
default
{
login
,
// signup
const
signup
=
async
(
payload
)
=>
{
const
{
data
}
=
await
axios
.
post
(
"
/api/signup
"
,
payload
);
return
data
;
};
const
userApi
=
{
login
,
signup
};
export
default
userApi
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment