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
survey
Commits
8290c382
Commit
8290c382
authored
Jul 05, 2022
by
Yoon, Daeki
😅
Browse files
인증 api 추가
parent
aee1333e
Changes
1
Show whitespace changes
Inline
Side-by-side
frontend/src/apis/auth.api.ts
0 → 100644
View file @
8290c382
import
axios
from
"
axios
"
;
import
baseUrl
from
"
./baseUrl
"
;
export
const
login
=
async
(
email
:
string
,
password
:
string
)
=>
{
const
{
data
}
=
await
axios
.
post
(
`
${
baseUrl
}
/auth/login`
,
{
email
,
password
,
});
return
data
;
};
export
const
logout
=
async
()
=>
{
const
{
data
}
=
await
axios
.
get
(
`
${
baseUrl
}
/auth/logout`
);
return
data
;
};
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