mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-20 07:13:45 +02:00
Update allocations to support ids; protect endpoints; support notes
This commit is contained in:
@@ -25,9 +25,11 @@ class AllocationTransformer extends BaseClientTransformer
|
||||
public function transform(Allocation $model)
|
||||
{
|
||||
return [
|
||||
'id' => $model->id,
|
||||
'ip' => $model->ip,
|
||||
'ip_alias' => $model->ip_alias,
|
||||
'port' => $model->port,
|
||||
'notes' => $model->notes,
|
||||
'is_default' => $model->server->allocation_id === $model->id,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user