From 74d722b3015ac252784114a07dfcc4afe4a60084 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Mon, 15 Sep 2025 14:39:05 +0700 Subject: [PATCH] revert api() wrap with data when non JsonResource --- include/globalfunctions.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/globalfunctions.php b/include/globalfunctions.php index 3dc2922a..8c6dd7da 100644 --- a/include/globalfunctions.php +++ b/include/globalfunctions.php @@ -542,8 +542,6 @@ function api(...$args) } if ($data instanceof \Illuminate\Http\Resources\Json\JsonResource) { $data = $data->response()->getData(true); - } else { - $data = ['data' => $data]; } // dd($data); $time = (float)number_format(microtime(true) - nexus()->getStartTimestamp(), 3);