diff options
Diffstat (limited to 'lib/utils.php')
| -rw-r--r-- | lib/utils.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils.php b/lib/utils.php index 31d8778..eb868a2 100644 --- a/lib/utils.php +++ b/lib/utils.php @@ -1,5 +1,6 @@ <?php include_once $_SERVER['DOCUMENT_ROOT'] . '/../config.php'; +define('IS_JSON_REQUEST', $_SERVER['HTTP_ACCEPT'] == 'application/json'); function json_response(mixed $data, string|null $message, int $code = 200) { |
