|
|
@@ -1,5 +1,20 @@
|
|
|
import api from "src/api";
|
|
|
|
|
|
+export const getStoreItemsAssociado = async () => {
|
|
|
+ const { data } = await api.get("/associado/store-item");
|
|
|
+ return data.payload;
|
|
|
+};
|
|
|
+
|
|
|
+export const getMyInterestsAssociado = async () => {
|
|
|
+ const { data } = await api.get("/associado/store-item/my/interests");
|
|
|
+ return data.payload;
|
|
|
+};
|
|
|
+
|
|
|
+export const toggleInterestAssociado = async (id) => {
|
|
|
+ const { data } = await api.post(`/associado/store-item/${id}/interest`);
|
|
|
+ return data.payload;
|
|
|
+};
|
|
|
+
|
|
|
export const getStoreItems = async () => {
|
|
|
const { data } = await api.get("/store-item");
|
|
|
return data.payload;
|