Fix API /os

This commit is contained in:
Peter Šurda 2024-06-07 07:30:32 +02:00
parent 25ff23d98d
commit 162b708dbf
Signed by untrusted user: PeterSurda
GPG Key ID: 3E47497CF67ABB95

View File

@ -190,7 +190,8 @@ class ApiController extends Controller
protected function getAllOs()
{
$os = OS::allOS()->toJson(JSON_PRETTY_PRINT);
$os = OS::allOS();
$os = json_encode($os, JSON_PRETTY_PRINT);
return response($os, 200);
}