mirror of
https://github.com/lorsanstand/Aether.git
synced 2026-09-18 14:18:20 +03:00
Add searching users
This commit is contained in:
@@ -56,6 +56,13 @@ export const userService = {
|
||||
await apiClient.delete('/users/me/avatar');
|
||||
},
|
||||
|
||||
searchUsers: async (username: string, offset: number = 0, limit: number = 30): Promise<User[]> => {
|
||||
const response = await apiClient.get('/users/search', {
|
||||
params: { username, offset, limit }
|
||||
});
|
||||
return response.data;
|
||||
},
|
||||
|
||||
deleteAccount: async (): Promise<void> => {
|
||||
await apiClient.delete('/users/me');
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user