Commit f9de4f5d by Phạm Văn Đoan

cập nhật output

parent da63a307
......@@ -25,7 +25,13 @@ class TrackController extends Controller
$query = Track::select(['id', 'title', 'id_zing', 'id_nct', 'id_nct_str', 'id_keeng'])
->orderBy('title', 'asc');
return $query->get()->toArray();
$results = $query->get()->toArray();
return response()->json(dataResponse(
200,
'Danh sách tất cả bài hát',
$results
));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment