Add core logic to allow for limited databases and allocations

This commit is contained in:
Dane Everitt 2018-03-01 20:08:27 -06:00
parent 5f6c153537
commit 87b96bdfc8
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
8 changed files with 128 additions and 43 deletions

View file

@ -75,6 +75,10 @@ class ServerTransformer extends BaseTransformer
'io' => $server->io,
'cpu' => $server->cpu,
],
'feature_limits' => [
'databases' => $server->database_limit,
'allocations' => $server->allocation_limit,
],
'user' => $server->owner_id,
'node' => $server->node_id,
'allocation' => $server->allocation_id,