show profile user in header
This commit is contained in:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user