// client.js
// require('dotenv').config();
// const axios = require('axios');
import axios from 'axios';

const BASE_URL   = 'https://dev.dine360.ca/api/resource';
const API_KEY    = '482beca79d9c005';
const API_SECRET = 'b8778f51fcca82b';
const authHeader = `token ${API_KEY}:${API_SECRET}`;

const client = axios.create({
  baseURL: BASE_URL,
  headers: {
    'Authorization': authHeader
  }
});

module.exports = client;
