chore: update signup api (#1067)

This commit is contained in:
boojack
2023-02-11 15:15:56 +08:00
committed by GitHub
parent 3590d3f8b6
commit aad97c4c54
8 changed files with 70 additions and 85 deletions

View File

@ -25,11 +25,10 @@ export function signin(username: string, password: string) {
});
}
export function signup(username: string, password: string, role: UserRole) {
export function signup(username: string, password: string) {
return axios.post<ResponseObject<User>>("/api/auth/signup", {
username,
password,
role,
});
}