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() tokenService.removeUser()
} }
async register({ email, password, name }) { async register(email, password, name) {
return api return api
.post('/auth/register', { .post('/auth/register', { email: email, password: password, name: name })
email,
password,
name
})
.then((response) => { .then((response) => {
const { data } = response const { data } = response
if (data.access_token) { if (data.access_token) {