const CoolifyClient = require('../coolifyClient');

/**
 * Get Coolify API health status.
 * @param {string} host_url
 * @param {string} token
 * @returns {Promise<Object>}
 * @example
 * health('https://coolify.example.com', 'TOKEN');
 */
async function health(host_url, token) {
  const client = new CoolifyClient(host_url, token);
  return client.get('/api/v1/health');
}

module.exports = {
  health,
}; 