mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Implement initial server and location API routes.
Also fixes a few exception handler issues causing incorrect HTTP status codes on authorization errors.
This commit is contained in:
@@ -76,7 +76,7 @@ class ServerTransformer extends TransformerAbstract
|
||||
*/
|
||||
public function transform(Server $server)
|
||||
{
|
||||
return $server->toArray();
|
||||
return collect($server->toArray())->only($server->getTableColumns())->toArray();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user