/** * Show the readme * @return Response */ public function index() { $browser = Guest::getBrowser(); $isCurl = preg_match("/curl/i", $browser); $content = $this->keystone->readme(); return $isCurl ? $content : view('keystone::server.index', compact('content')); }
/** * Show the readme * @return Response */ public function index() { $browser = Guest::getBrowser(); $isCurl = preg_match("/curl/i", $browser); #$content = $this->api->readme(); #return $isCurl ? $content : view('api::server.index', compact('content')); return "welcome to api"; }