0) { Router::get('/lk', 'ProfileController@lk'); Router::get('/lk/upload', 'ProfileController@upload'); Router::post('/api/upload', 'ApiController@upload'); } else { Router::redirect('/login?return='.$_SERVER['HTTP_REFERER']); } } }