import axios from "axios"; export default async (query: { id: string }, plugin: { id: string }) => { try { const response = await axios.post( "http://localhost:3000/query/plugin/add", { queryId: query.id, pluginId: plugin.id, } ); return response; } catch (error) { console.error("Error in adding plugin to query:", error); } };