* @link https://getkirby.com * @copyright Bastian Allgeier * @license https://getkirby.com/license */ class Search extends Json { protected static $key = '$search'; /** * @param mixed $data * @param array $options * @return \Kirby\Http\Response */ public static function response($data, array $options = []) { if (is_array($data) === true) { $data = [ 'results' => $data ]; } return parent::response($data, $options); } }