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

/**
 * Create axios instance for SEJAM API
 */
const smsClient = axios.create({
  baseURL: servicesConfig.smsConfig.url,
  timeout: 10000,
  headers: {
    "Content-Type": "application/json",
    "x-api-key": servicesConfig.smsConfig.key,
  },
});

export default smsClient;
