Skip to content

Commit

Permalink
Изменен URL для получения профиля (#82)
Browse files Browse the repository at this point in the history
Старый URL "/info" заменен на новый "/details" в методе getProfile. Это изменение было сделано для корректного взаимодействия с API и получения актуальных данных пользователя.

Co-authored-by: Akemiko <[email protected]>
  • Loading branch information
GamerVII-NET and Arsenii1109 authored Oct 12, 2024
1 parent 1f6be34 commit 55e0b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/services/ProfileService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ProfileService {
}

async getProfile(body: TGetProfileRequest): Promise<TGetProfileResponse> {
const { data } = await $api.post<TGetProfileResponse>(`${this.BASE_URL}/info`, body);
const { data } = await $api.post<TGetProfileResponse>(`${this.BASE_URL}/details`, body);

return data;
}
Expand Down

0 comments on commit 55e0b14

Please sign in to comment.