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

    const config = useRuntimeConfig();

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

const getAllBlogs = async function getAllBlogs() {
    const d = new Date();
    let time = d.getTime();
    const config = useRuntimeConfig();

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

export default {
    getTestimonials: getTestimonials,
    getAllBlogs: getAllBlogs,
    home: "home"
}