feat(account): implement initial skin loading in profile
This commit is contained in:
7
src/api/user.ts
Normal file
7
src/api/user.ts
Normal 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}`);
|
||||
};
|
||||
Reference in New Issue
Block a user