feat(account): implement initial skin loading in profile

This commit is contained in:
2025-06-17 14:49:19 +03:00
parent 8f4996fb2b
commit f9e0c068f4
4 changed files with 85 additions and 4 deletions

7
src/api/user.ts Normal file
View File

@@ -0,0 +1,7 @@
import apiClient from "./axios";
import type { SessionProfileResponse } from "@/types";
export const getUserProfile = (uuid: string) => {
// Этот эндпоинт не начинается с /api, поэтому указываем полный путь
return apiClient.get<SessionProfileResponse>(`/sessionserver/session/minecraft/profile/${uuid}`);
};