diff --git a/src/api/userService.ts b/src/api/userService.ts index 7dda43e..59293c8 100644 --- a/src/api/userService.ts +++ b/src/api/userService.ts @@ -23,5 +23,10 @@ export const userService = { async deleteUser(userId: number): Promise { await apiClient.delete(`${API_BASE_URL}/${userId}`); + }, + + async getUser(userId: number): Promise { + const response = await apiClient.get(`${API_BASE_URL}/${userId}`); + return response.data; } }; \ No newline at end of file