routes response refactoring

This commit is contained in:
Čarodej
2022-05-16 14:14:48 +02:00
parent f66982b3ec
commit e87e2ec4e3
85 changed files with 534 additions and 316 deletions

View File

@@ -13,7 +13,7 @@ class GetDashboardDataController extends Controller
public function __invoke(): JsonResponse
{
// Get bandwidth data
list($upload, $download, $uploadTotal, $downloadTotal, $storageUsage) = $this->getDiskData();
[$upload, $download, $uploadTotal, $downloadTotal, $storageUsage] = $this->getDiskData();
// Get total earnings from transactions
$totalEarnings = DB::table('transactions')