. * */ namespace Friendica\Module\Api\GNUSocial\Help; use Friendica\Module\Api\ApiResponse; use Friendica\Module\BaseApi; /** * API endpoint: /api/help/test */ class Test extends BaseApi { public static function rawContent(array $parameters = []) { if (!empty($parameters['extension']) && ($parameters['extension'] == 'xml')) { $ok = 'true'; } else { $ok = 'ok'; } ApiResponse::exit('ok', ['ok' => $ok], $parameters['extension'] ?? null); } }