mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-22 23:17:09 +00:00
11 lines
269 B
TypeScript
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");
|
|
};
|