移除注册功能,管理员创建用户并新增创建用户弹窗
This commit is contained in:
@@ -79,12 +79,6 @@ async function request<T>(
|
||||
}
|
||||
|
||||
export const api = {
|
||||
register: (body: { username: string; email?: string; password: string }) =>
|
||||
request<AuthResponse>('/api/auth/register', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(body),
|
||||
}),
|
||||
|
||||
login: (body: { username: string; password: string }) =>
|
||||
request<AuthResponse>('/api/auth/login', {
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user