diff --git a/app/routes/app.php b/app/routes/app.php index 8ca87ef8..0705560c 100644 --- a/app/routes/app.php +++ b/app/routes/app.php @@ -7,8 +7,10 @@ Route::group(['before' => 'has_setting:app_name', 'namespace' => 'CachetHQ\Cache }); // Setup route. -Route::group(['before' => 'is_setup'], function () { +Route::group(['before' => 'is_setup', 'namespace' => 'CachetHQ\Cachet\Controllers'], function () { Route::controller('/setup', 'SetupController'); }); -Route::get('/rss', 'RssController@feedAction'); +Route::group(['namespace' => 'CachetHQ\Cachet\Controllers'], function () { + Route::get('/rss', 'RssController@feedAction'); +}); diff --git a/app/routes/auth.php b/app/routes/auth.php index c4abf3c6..bc5eb71e 100644 --- a/app/routes/auth.php +++ b/app/routes/auth.php @@ -5,4 +5,6 @@ Route::group(['before' => 'has_setting:app_name', 'namespace' => 'CachetHQ\Cache Route::post('/auth/login', ['before' => 'guest|csrf|login_throttling', 'as' => 'logout', 'uses' => 'AuthController@postLogin']); }); -Route::get('/auth/logout', ['before' => 'auth', 'as' => 'logout', 'uses' => 'AuthController@logoutAction']); +Route::group(['before' => 'auth', 'namespace' => 'CachetHQ\Cachet\Controllers'], function () { + Route::get('/auth/logout', ['as' => 'logout', 'uses' => 'AuthController@logoutAction']); +}); diff --git a/composer.lock b/composer.lock index ebe05723..435b5478 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "44248db4d4bba4ff38d7f3aef78acc79", + "hash": "af0ee6e5bc07e350732bc7c907e3b2ae", "packages": [ { "name": "classpreloader/classpreloader", diff --git a/src/Controllers/AuthController.php b/src/Controllers/AuthController.php index f6850893..65b21848 100644 --- a/src/Controllers/AuthController.php +++ b/src/Controllers/AuthController.php @@ -1,13 +1,13 @@