Files
appco_dist/.output/public/_nuxt/Mgbfb8hQ.js
T
2025-07-27 10:51:22 +03:30

2 lines
449 B
JavaScript

import{az as a,N as s}from"./vNwORUzZ.js";const c=async e=>{let t=s.from("collections").select("*");return e!=null&&e.length&&t.like("title",`%${e}%`),(await t.select("*").order("created_at",{ascending:!1})).data},o=async e=>{await a.fetch("collections","insert",{data:e})},i=async(e,t)=>a.fetch("collections","update",{data:t,field:"id",value:e}),n=async e=>a.fetch("collections","delete",{field:"id",value:e});export{o as c,n as d,c as g,i as u};