leumas-private-shared
Version:
Private React JSX Package For Leumas Shared Components, Headers, Footers, Asides, Login Pages, API Key Manager and much more. Styles and everything reusable to avoid DRY code across all of our subdomains
16 lines (14 loc) • 457 B
JSX
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;
}
};