2019-12-10 21:27:09 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Friendica\Module\Api\Mastodon;
|
|
|
|
|
2019-12-11 06:51:59 +00:00
|
|
|
use Friendica\Api\Mastodon\Instance as InstanceEntity;
|
2019-12-10 21:27:09 +00:00
|
|
|
use Friendica\Core\System;
|
|
|
|
use Friendica\Module\Base\Api;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @see https://docs.joinmastodon.org/api/rest/instances/
|
|
|
|
*/
|
|
|
|
class Instance extends Api
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param array $parameters
|
2019-12-25 10:41:35 +00:00
|
|
|
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
2019-12-10 21:27:09 +00:00
|
|
|
*/
|
|
|
|
public static function rawContent(array $parameters = [])
|
|
|
|
{
|
2019-12-30 02:50:15 +00:00
|
|
|
System::jsonExit(InstanceEntity::get());
|
2019-12-10 21:27:09 +00:00
|
|
|
}
|
|
|
|
}
|