comment + favorive
This commit is contained in:
@@ -5,6 +5,8 @@ import {
|
||||
UpdateProfileResponse,
|
||||
AddressLocationResponse,
|
||||
UpdateAddressType,
|
||||
WishlistResponse,
|
||||
CommentsResponse,
|
||||
} from "../types/ProfileTypes";
|
||||
|
||||
export const getProfile = async () => {
|
||||
@@ -31,3 +33,13 @@ export const updateAddress = async (addressData: UpdateAddressType) => {
|
||||
const { data } = await axios.post("/address/user/save", addressData);
|
||||
return data;
|
||||
};
|
||||
|
||||
export const getWithList = async (): Promise<WishlistResponse> => {
|
||||
const { data } = await axios.get("/user/profile/wishlist");
|
||||
return data;
|
||||
};
|
||||
|
||||
export const getComments = async (): Promise<CommentsResponse> => {
|
||||
const { data } = await axios.get("/user/profile/comments");
|
||||
return data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user