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