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

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

module.exports = {
  version,
}; 