Make server listing and single server view API endpoints work
This commit is contained in:
parent
74bdbea6a4
commit
a497a3d153
39 changed files with 367 additions and 176 deletions
13
app/Transformers/Api/Application/EggVariableTransformer.php
Normal file
13
app/Transformers/Api/Application/EggVariableTransformer.php
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace Pterodactyl\Transformers\Api\Application;
|
||||
|
||||
use Pterodactyl\Models\EggVariable;
|
||||
|
||||
class EggVariableTransformer extends BaseTransformer
|
||||
{
|
||||
public function transform(EggVariable $model)
|
||||
{
|
||||
return $model->toArray();
|
||||
}
|
||||
}
|
Reference in a new issue