feat: user

This commit is contained in:
moolcoov
2025-03-03 20:35:47 +03:00
parent 1b58e1d51e
commit f3a2f5ee23
7 changed files with 64 additions and 9 deletions
+5 -1
View File
@@ -1,6 +1,10 @@
import { userFetch } from ".";
import { User } from "../types/user";
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");
};