summaryrefslogtreecommitdiff
path: root/src/utils.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-04-30 00:17:39 +0500
committerilotterytea <iltsu@alright.party>2025-04-30 00:17:39 +0500
commit6e27fb9de11843b7bb605fe85cb628b6e4882787 (patch)
treec4e3cf3cbf705267b24bc5ddf1fcd355b4441b56 /src/utils.php
parent8d6cb83506bcaa6b48aa1b24c31678a83b69374b (diff)
feat: PAGination!
Diffstat (limited to 'src/utils.php')
-rw-r--r--src/utils.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/utils.php b/src/utils.php
index a11fa16..6356cfb 100644
--- a/src/utils.php
+++ b/src/utils.php
@@ -1,6 +1,4 @@
<?php
-define("CLIENT_REQUIRES_JSON", isset($_SERVER["HTTP_ACCEPT"]) && $_SERVER["HTTP_ACCEPT"] == "application/json");
-
function json_response(mixed $response, int $status = 200)
{
http_response_code($status);