mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-04 20:23:16 +00:00
26 lines
649 B
PHP
26 lines
649 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Transformer\Api;
|
||
|
|
||
|
use App\Instance;
|
||
|
use League\Fractal;
|
||
|
|
||
|
class InstanceTransformer extends Fractal\TransformerAbstract
|
||
|
{
|
||
|
public function transform(Instance $instance)
|
||
|
{
|
||
|
return [
|
||
|
'uri' => $instance->url,
|
||
|
'title' => null,
|
||
|
'description' => null,
|
||
|
'email' => null,
|
||
|
'version' => null,
|
||
|
'thumbnail' => null,
|
||
|
'urls' => [],
|
||
|
'stats' => [],
|
||
|
'languages' => null,
|
||
|
'contact_account' => null
|
||
|
];
|
||
|
}
|
||
|
}
|