c9ff605ac9
CI / build (push) Failing after 10m29s
- 하단 내비게이션(뒤로/앞으로/홈/새로고침/설정), 사이드바 홈 제거 - 설정 화면: 계정정보·앱 버전(package.json)·App Data 삭제 - 가입정보 변경: 비밀번호 재인증 → 이름/이메일 수정 - 로그인 후 대시보드(/) 이동, 로그인 전 햄버거·네이버 로그인 버튼 숨김 - Vitest 도입(32): authApi/accountApi 와이어링, auth/ui 스토어, 로그인 플로우 - CI(.gitea): npm test 게이트 추가 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
32 lines
767 B
JavaScript
32 lines
767 B
JavaScript
import http from './http'
|
|
|
|
// 백엔드 /api/auth 엔드포인트와 매핑
|
|
export const authApi = {
|
|
signup(payload) {
|
|
return http.post('/auth/signup', payload)
|
|
},
|
|
signupEnabled() {
|
|
return http.get('/auth/signup-enabled')
|
|
},
|
|
login(payload) {
|
|
return http.post('/auth/login', payload)
|
|
},
|
|
logout() {
|
|
return http.post('/auth/logout')
|
|
},
|
|
me() {
|
|
return http.get('/auth/me')
|
|
},
|
|
changePassword(payload) {
|
|
return http.put('/auth/password', payload)
|
|
},
|
|
// 가입정보 변경 진입 전 비밀번호 재인증
|
|
verifyPassword(password) {
|
|
return http.post('/auth/verify-password', { password })
|
|
},
|
|
// 가입정보(이름/이메일) 변경
|
|
updateProfile(payload) {
|
|
return http.put('/auth/profile', payload)
|
|
},
|
|
}
|