Ryanhub - file viewer
filename: html/api/lib/response.php
branch: main
back to repo
<?php
function json($data, int $code = 200): void {
    http_response_code($code);
    echo json_encode($data);
    exit;
}