关闭公开注册并优化仪表盘
This commit is contained in:
@@ -23,10 +23,6 @@ export const authApi = {
|
||||
const res = await request.post('/auth/login', { username, password })
|
||||
return res.data.data as LoginResult
|
||||
},
|
||||
register: async (data: { username: string; password: string; nickname?: string }) => {
|
||||
const res = await request.post('/auth/register', data)
|
||||
return res.data.data as User
|
||||
},
|
||||
profile: async () => {
|
||||
const res = await request.get('/auth/profile')
|
||||
return res.data.data as User
|
||||
|
||||
Reference in New Issue
Block a user