Files
appco_dist/.output/public/_nuxt/7_zFou87.js
T

2 lines
441 B
JavaScript

import{aA as a,N as s}from"./G_17LgpR.js";const l=async e=>{let t=s.from("collections").select("*");return 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,l as g,i as u};