@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace App\Http\Controllers; |
4 | 4 | |
5 | 5 | use GuzzleHttp\Client; |
6 | -use App\Http\Requests; |
|
7 | -use Illuminate\Http\Request; |
|
8 | 6 | use App\Http\Controllers\Controller; |
9 | 7 | |
10 | 8 | class NytController extends Controller |
@@ -27,11 +27,11 @@ |
||
27 | 27 | */ |
28 | 28 | public function __construct() |
29 | 29 | { |
30 | - $this->baseUrl = 'http://api.nytimes.com/svc'; |
|
31 | - $this->client = new Client(['base_uri' => $this->baseUrl]); |
|
30 | + $this->baseUrl = 'http://api.nytimes.com/svc'; |
|
31 | + $this->client = new Client(['base_uri' => $this->baseUrl]); |
|
32 | 32 | |
33 | - $relativeUrl = '/books/v3/lists/overview.json?api-key=' . env('NYT_BOOKS_API_KEY'); |
|
34 | - $this->setGetResponse($relativeUrl); |
|
33 | + $relativeUrl = '/books/v3/lists/overview.json?api-key=' . env('NYT_BOOKS_API_KEY'); |
|
34 | + $this->setGetResponse($relativeUrl); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |