revert api() wrap with data when non JsonResource

This commit is contained in:
xiaomlove
2025-09-15 14:39:05 +07:00
parent 5f2e0e9d64
commit 74d722b301

View File

@@ -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);