mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 09:02:28 +01:00
54b6fb5ebd
Also corrects API format to maintain JSONAPI spec
32 lines
966 B
PHP
32 lines
966 B
PHP
<?php
|
|
|
|
return [
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Default Serializer
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| The default serializer to be used when performing a transformation. It
|
|
| may be left empty to use Fractal's default one. This can either be a
|
|
| string or a League\Fractal\Serializer\SerializerAbstract subclass.
|
|
|
|
|
*/
|
|
|
|
'default_serializer' => League\Fractal\Serializer\JsonApiSerializer::class,
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Auto Includes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| If enabled Fractal will automatically add the includes who's
|
|
| names are present in the `include` request parameter.
|
|
|
|
|
*/
|
|
|
|
'auto_includes' => [
|
|
'enabled' => true,
|
|
'request_key' => 'include',
|
|
],
|
|
];
|