import axios from "axios";
import { baseUrl } from "../../constants/urls";

export const GalleriesApi = async ()=> {
    const url = `${baseUrl}/api/galleries`;
    const config = {
        method: "GET",
        url: url,

        headers: {
            Accept: 'application/json'
        }
        
    }
    const galleries =  await axios(config);
    
     
  
  
   return galleries.data;
}

export const GalleriesHomeApi = async ()=> {
    const url = `${baseUrl}/api/galleries?gallery-code=ads-homepage,Blog thumb Images,Offers-homepage,Home images - Trusted by section,Core-values-icons-home,home-page-banner`;
    const config = {
        method: "GET",
        url: url,

        headers: {
            Accept: 'application/json'
        }
        
    }
    const galleries =  await axios(config);
    
     
  
  
   return galleries.data;
}




export const ImagesApi = async ()=> {
    const url = `${baseUrl}/api/images`;
    const config = {
        method: "GET",
        url: url,

        headers: {
            Accept: 'application/json'
        }
        
    }
    const images =  await axios(config);
    
     
  
  
   return images.data;
}

export const brandApi = async ()=> {
    const url = `${baseUrl}/api/brands-list`;
    const config = {
        method: "GET",
        url: url,

        headers: {
            Accept: 'application/json'
        }
        
    }
    const brands =  await axios(config);
    
     
  
  
   return brands.data;
}









