import axios from "axios"; export default async (project: { token: string }, source: string) => { try { const response = await axios.post("http://localhost:3000/query/create", { source, projectToken: project.token, }); return response.data; } catch (error) { console.error("Error creating query:", error); throw error; } };