From 0b3042f34dff42b4a689a15d4d5261f344f6fa00 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Thu, 1 Jan 2015 16:18:24 +0000 Subject: [PATCH] Fixes --- app/routes/app.php | 6 ++++-- app/routes/auth.php | 4 +++- composer.lock | 2 +- src/Controllers/AuthController.php | 4 ++-- src/Controllers/DashAPIController.php | 4 ++-- src/Controllers/DashComponentController.php | 4 ++-- src/Controllers/DashIncidentController.php | 4 ++-- src/Controllers/DashSettingsController.php | 4 ++-- src/Controllers/DashUserController.php | 4 ++-- src/Controllers/DashboardController.php | 2 +- src/Controllers/HomeController.php | 4 ++-- src/Controllers/RssController.php | 4 ++-- src/Controllers/SetupController.php | 4 ++-- 13 files changed, 27 insertions(+), 23 deletions(-) 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 @@