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

    const res = await $fetch(config.public.apiBase + '/loans.json?' + time)
        .catch((error) => error.data);
    return res;
}
const getLoanOffers = async function getLoanOffers() {
    const d = new Date();
    let time = d.getTime();
    const config = useRuntimeConfig();

    const res = await $fetch(config.public.apiBase + '/loans-offers.json?' + time )
        .catch((error) => error.data);
    return res;
}
const getLoanBlogs = async function getLoanBlogs() {
    const d = new Date();
    let time = d.getTime();
    const config = useRuntimeConfig();

    const res = await $fetch(config.public.apiBase + '/loans-blogs.json?' + time )
        .catch((error) => error.data);
    return res;
}
export default {
    getAllLoansDetails: getAllLoansDetails,
    getLoanOffers: getLoanOffers,
    getLoanBlogs: getLoanBlogs,
    loans: "loans"
}