// API Configuration
export const API_CONFIG = {
  // Client on test.exbytestudios.com, API on mc.exbytestudios.com
  BASE_URL: import.meta.env.VITE_API_URL || 'https://mc.exbytestudios.com',
  ENDPOINTS: {
    AUTH: {
      LOGIN: '/api/auth/login',
      REVOKE: '/api/auth/revoke',
    },
    CONNECTIONS: {
      CREATE: '/api/connections',
      LIST: '/api/connections',
      DELETE: (id: string) => `/api/connections/${id}`,
      EXTEND: (id: string) => `/api/connections/${id}/extend`,
    },
    MACHINES: {
      CHECK_AVAILABILITY: '/api/machines/check-availability',
      SAVED: '/api/machines/saved',
      SAVED_BY_ID: (id: string) => `/api/machines/saved/${id}`,
      SAVED_CONNECT: (id: string) => `/api/machines/saved/${id}/connect`,
    },
    BULK: {
      HEALTH_CHECK: '/api/bulk/health-check',
      SSH_COMMAND: '/api/bulk/ssh-command',
    },
    SECURITY: {
      CERTIFICATE_PINS: '/api/security/certificate-pins',
    },
    HEALTH: {
      CHECK: '/api/health',
    },
  },
  TIMEOUTS: {
    DEFAULT: 30000, // 30 seconds
    LONG: 60000, // 60 seconds
  },
}; 