const getAllEducationDetails = async function getAllEducationDetails() {
    const d = new Date();
    let time = d.getTime();

    const config = useRuntimeConfig();

    const res = await $fetch(config.public.apiBase + '/education.json?' + time)
        .catch((error) => error.data);
    return res;
}

const getAllEducationTestimonials = async function getAllEducationTestimonials() {
    const d = new Date();
    let time = d.getTime();

    const config = useRuntimeConfig();

    const res = await $fetch(config.public.apiBase + '/education-testimonials.json?' + time)
        .catch((error) => error.data);
    return res;
}

export default {
    getAllEducationDetails: getAllEducationDetails,
    getAllEducationTestimonials: getAllEducationTestimonials,
    education: "education"
}