feat: add sign up page

This commit is contained in:
Steven
2023-06-26 20:00:38 +08:00
parent b0b8d746c8
commit 4073b2f57e
5 changed files with 164 additions and 45 deletions

View File

@@ -11,9 +11,10 @@ export function signin(email: string, password: string) {
});
}
export function signup(email: string, password: string) {
export function signup(email: string, nickname: string, password: string) {
return axios.post<User>("/api/v1/auth/signup", {
email,
nickname,
password,
});
}