Change routes handling for api and rss

This commit is contained in:
DariusIII
2019-02-24 14:54:50 +01:00
parent 29d700fe6f
commit e71517ef4c
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ class BasePageController extends Controller
*/
public function __construct()
{
$this->middleware('auth')->except('api', 'rss', 'contact', 'showContactForm', 'callback', 'getNzb', 'terms', 'capabilities', 'movie', 'search', 'tv', 'details', 'failed');
$this->middleware(['auth', 'web'])->except('api', 'rss', 'contact', 'showContactForm', 'callback', 'getNzb', 'terms', 'capabilities', 'movie', 'apiSearch', 'tv', 'details', 'failed');
// Buffer settings/DB connection.
$this->settings = new Settings();
$this->smarty = app('smarty.view');