<?php

/**
 * Return the vhost data
 *
 * @param string $vhost - vhost
 * @return array
 */

QUI::getAjax()->registerFunction(
    'ajax_vhosts_get',
    static function ($vhost): bool|array {
        $VhostManager = new QUI\System\VhostManager();

        return $VhostManager->getVhost($vhost);
    },
    ['vhost'],
    'Permission::checkSU'
);
