display score user

This commit is contained in:
hamid zarghami
2025-12-13 12:47:02 +03:30
parent ca566546c2
commit 51f246897d
4 changed files with 33 additions and 3 deletions
@@ -1,7 +1,12 @@
import { api } from "@/config/axios";
import { CouponsResponse } from "../types/Types";
import { CouponsResponse, WalletResponse } from "../types/Types";
export const getMyCoupons = async (): Promise<CouponsResponse> => {
const { data } = await api.get<CouponsResponse>("/public/coupons/me");
return data;
};
export const getUserWallet = async (): Promise<WalletResponse> => {
const { data } = await api.get<WalletResponse>("/public/user/wallet");
return data;
};