import axios from "axios";
import { servicesConfig } from "$config/index.js";

/**
 * Create axios instance for TADBIR API
 */
const tadbirClient = axios.create({
  baseURL: `${servicesConfig.tadbirConfig.url}/api/${servicesConfig.tadbirConfig.key}/v0`,
  headers: {
    Accept: "application/json",
    "Content-Type": "application/json",
  },
});

export default tadbirClient;
