Files
DataRush/services/frontend/src/shared/api/user.ts
T
2025-03-03 20:35:47 +03:00

11 lines
269 B
TypeScript

import { userFetch } from ".";
import { User, UserStats } from "../types/user";
export const getCurrentUser = async () => {
return await userFetch<User>("/me");
};
export const getCurrentUserStats = async () => {
return await userFetch<UserStats>("/me/stat");
};