import axios from 'axios';

export const searchConfigs = async (query, specificConfig = null) => {
    try {
        const response = await axios.post("http://localhost:3002/configs/search-configs", {
            query,
            specificConfig
        });
        console.log("Fetched : ", response.data)
        return response.data;
    } catch (err) {
        console.error("Error searching configs:", err);
        throw err;
    }
};
