mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update signup api (#1067)
This commit is contained in:
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user