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

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

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

    const res = await $fetch(config.public.apiBase + '/restaurant-blogs.json?' + time )
        .catch((error) => error.data);
    return res;
}
export default {
    getAllResturantDetails: getAllResturantDetails,
    getRestaurantOffers: getRestaurantOffers,
    getRestaurantBlogs: getRestaurantBlogs,
    restaurants: "restaurants"
}