public function store(AppleTvRequest $request)
 {
     //store the apple tv
     $user = Auth::user();
     $appleTVRegistration = new AppleTVRegistration();
     $appleTVRegistration->authenticateAppleTv($request->identifier, $user);
     return redirect('profile');
 }
Route::get('login/instagram', 'SocialController@instagramCallback');
Route::get('logout/instagram', 'SocialController@instagramLogout');
Route::get('appletv/register', 'AppleTvAuthenticateController@register');
Route::post('appletv/store', 'AppleTvAuthenticateController@store');
Route::group(['prefix' => 'api'], function () {
    //token
    //remove code in VerifyCsrfToken.php
    Route::post('login', 'Api\\AuthenticateController@login');
    //apple tv content
    //token is not refreshed
    Route::get('appletv/activate', function () {
        $registration = new AppleTVRegistration();
        return $registration->registerNewTV();
    });
    Route::get('appletv/check_authorization/{identifier}', function ($identifier) {
        $registration = new AppleTVRegistration();
        return $registration->checkAppleTV($identifier);
    });
    Route::get('appletv/feed', function () {
        $fetcher = new DataFetcher();
        return $fetcher->getAppleTVData();
    });
    //web content
    //token is refreshed after every request
    Route::group(['middleware' => ['jwt.auth', 'jwt.refresh']], function () {
        Route::post('logout', 'Api\\AuthController@logout');
        Route::get('feed', function () {
            $fetcher = new DataFetcher();
            return $fetcher->fetchAllData();
        });
        Route::get('media/{site}/{id}', function ($site, $id) {