Files
appco_dist/.output/public/_nuxt/D46nhkRm.js
T
2025-08-04 18:56:56 +03:30

2 lines
449 B
JavaScript

import{az as a,N as s}from"./U-2qI7u0.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};