Admin: split action handlers and refresh project docs

This commit is contained in:
2026-02-21 14:25:42 +03:00
parent ccb13f3e38
commit d295afd8ec
6 changed files with 889 additions and 829 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
declare(strict_types=1);
function adminJsonResponse(array $payload, int $statusCode = 200): never
{
http_response_code($statusCode);
header('Content-Type: application/json; charset=utf-8');
echo json_encode($payload, JSON_UNESCAPED_UNICODE);
exit;
}