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

    const config = useRuntimeConfig();

    const res = await $fetch(config.public.apiBase + '/hotel.json?')
        .catch((error) => error.data);
    return res;
}
const getHotelOffers = async function getHotelOffers() {
    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 getHotelBlogs = async function getHotelBlogs() {
    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 {
    getAllHotelDetails: getAllHotelDetails,
    getHotelOffers: getHotelOffers,
    getHotelBlogs: getHotelBlogs,
    hotels: "hotels"
}