mirror of
https://github.com/lorsanstand/Aether.git
synced 2026-09-18 14:18:20 +03:00
Add edit message
This commit is contained in:
@@ -26,6 +26,11 @@ export const userService = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
getUserById: async (userId: number): Promise<User> => {
|
||||
const response = await apiClient.get(`/users/${userId}`);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
updateProfile: async (data: UserUpdate): Promise<User> => {
|
||||
const response = await apiClient.put('/users/me', data);
|
||||
return response.data;
|
||||
|
||||
Reference in New Issue
Block a user