first build

This commit is contained in:
2026-01-27 16:02:45 +03:30
parent f3a14141c7
commit a29cf38e4d
4891 changed files with 82192 additions and 426764 deletions
@@ -0,0 +1,14 @@
import { ai as supabaseService, b as useUserStore, M as myAxios } from './server.mjs';
const createSave = async (product_id) => {
return await myAxios.post("/media/create-save", { product_id });
};
const deleteSave = async (product_id) => supabaseService.fetch("saved", "delete", {
field: ["user_id", "product_id"],
value: [useUserStore().user.id, product_id]
});
const getUserSaved = async (id, page = 1, limit = 10) => {
return await myAxios.post(`/media/user-saved-posts/${id}`, { page, limit });
};
export { createSave as c, deleteSave as d, getUserSaved as g };