show profile user in header

This commit is contained in:
hamid zarghami
2025-11-27 11:51:45 +03:30
parent 9c16a6143c
commit 93fd001951
6 changed files with 66 additions and 17 deletions
@@ -0,0 +1,7 @@
import { api } from "@/config/axios";
import { GetProfileResponse } from "../types/Types";
export const getProfile = async (): Promise<GetProfileResponse> => {
const { data } = await api.get<GetProfileResponse>("/public/user/me");
return data;
};