feat: 회원가입 페이지 및 API 추가
All checks were successful
Client CI/CD / deploy (push) Successful in 11s

- RegisterPage 추가 (아이디/비밀번호/비밀번호 확인 폼, 클라이언트 유효성 검사)
- /register 라우트 추가 (로그인 상태 시 홈 리다이렉트)
- 로그인 페이지에 회원가입 링크 및 가입 완료 안내 메시지 추가
- api/auth.js에 register() 함수 추가

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-24 15:11:32 +09:00
parent 1359c38222
commit 2ac2823ecc
5 changed files with 115 additions and 1 deletions

View File

@@ -6,3 +6,10 @@ export async function login(username, password) {
body: JSON.stringify({ username, password }),
});
}
export async function register(username, password) {
return apiFetch('/api/auth/register', {
method: 'POST',
body: JSON.stringify({ username, password }),
});
}