vue2_frontend...

This commit is contained in:
최준흠 2022-09-15 17:35:34 +09:00
parent 8da393dd29
commit 5b8d70b817

View File

@ -17,13 +17,9 @@ class AuthService {
tokenService.removeUser()
}
async register({ email, password, name }) {
async register(email, password, name) {
return api
.post('/auth/register', {
email,
password,
name
})
.post('/auth/register', { email: email, password: password, name: name })
.then((response) => {
const { data } = response
if (data.access_token) {