ccredit user
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import axios from "@/config/axios";
|
||||
import type { GetMeResponseType } from "@/pages/user/types/Types";
|
||||
|
||||
export const getMe = async (): Promise<GetMeResponseType["data"]> => {
|
||||
const { data } = await axios.get<GetMeResponseType>("/public/users/me");
|
||||
return data.data;
|
||||
};
|
||||
Reference in New Issue
Block a user