UNPKG

leumas-universal-crud-react

Version:

Leumas Universal CRUD to a dynamic Endpoint, Setup your own Dynamic Endpoint and Use Leumas API to send to your MONGO clusters

22 lines (11 loc) 400 B
import {getItemsByOwner} from "../UniversalCrudHelpers" export const getAIForms = async (userId, token , setError ) => { try{ const result = await getItemsByOwner("AiForm" , userId , "LeumasAPI" , token); console.log(result); return result }catch (err) { console.log("we could not fetch you forms" + err) setError("Could not fetch forms" + err) } }