diff --git a/jensmemes.php b/jensmemes.php index 376aa11..05e9588 100644 --- a/jensmemes.php +++ b/jensmemes.php @@ -179,10 +179,9 @@ if ($method == "GET") { case "/admin": admin(file_get_contents("php://input")); } - - } header('Content-Type: application/json'); +http_response_code($obj->status); echo stripslashes(json_encode($obj, JSON_UNESCAPED_UNICODE)); function endpoints() {