Register endpoint

This commit is contained in:
2024-07-22 02:21:30 +02:00
parent d94c342bd6
commit af588ab174
9 changed files with 192 additions and 43 deletions
+5
View File
@@ -14,6 +14,11 @@ class Response
public static function json($value, int $options = 0, int $dept = 512)
{
if (is_bool($value)) {
Response::response()->header('Content-Type: application/json; charset=utf-8');
echo json_encode($value, $options, $dept);
exit(0);
}
return SimpleRouter::response()->json($value, $options, $dept);
}
}