* [api] APIv1 esponse in entries.

This commit is contained in:
朱金勇
2025-12-05 10:45:50 +08:00
committed by Gitfox
parent db5b1bab41
commit 83d579acee
+3
View File
@@ -281,6 +281,9 @@ class control extends baseControl
*/
public function send($data, string $type = 'json')
{
/* APIv1 send json in entries. */
if($this->app->apiVersion == 'v1') return;
header('Content-Type: application/json');
if($type != 'json') return helper::end();