<?php
// controller.php migrated to fapi-vega-viz. The Apache vhost has a
// `ProxyPass /controller.php` rule that should intercept all requests
// before this file is even read. This stub exists only as a fallback
// for the case where Apache reload has not yet picked up the new vhost
// — so legacy clients still get a sensible JSON response. Original
// preserved at controller.php.legacy.
header('Content-Type: application/json; charset=utf-8');
http_response_code(503);
echo json_encode([
    'msg' => 'error',
    'res' => 'controller.php has been migrated to fapi. Reload the page.',
]);
exit;
