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

    const config = useRuntimeConfig();

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

    const config = useRuntimeConfig();

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

    const res = await $fetch(config.public.apiBase + '/hotel-blogs.json?' + time )
        .catch((error) => error.data);
    return res;
}
export default {
    getAllInvestmentDetails: getAllInvestmentDetails,
    getInvestmentOffers: getInvestmentOffers,
    getInvestmentBlogs: getInvestmentBlogs,
    investments: "investments"
}