Actually, we need to use hasSetting

This commit is contained in:
James Brooks
2015-09-21 11:11:02 +01:00
parent 92ab7c8451
commit a9a5eef275
3 changed files with 8 additions and 3 deletions

View File

@@ -29,8 +29,9 @@ class AuthRoutes
{
$router->group([
'as' => 'auth.',
'middleware' => 'app.isSetup',
'middleware' => 'app.hasSetting',
'prefix' => 'auth',
'setting' => 'app_name',
], function ($router) {
$router->get('login', [
'middleware' => 'guest',

View File

@@ -28,7 +28,10 @@ class FeedRoutes
public function map(Registrar $router)
{
// Prevent access until the app is setup.
$router->group(['middleware' => 'app.isSetup'], function ($router) {
$router->group([
'middleware' => 'app.hasSetting',
'setting' => 'app_name'
], function ($router) {
$router->get('/atom/{component_group?}', [
'as' => 'feed.atom',
'uses' => 'AtomController@feedAction',

View File

@@ -28,7 +28,8 @@ class StatusPageRoutes
public function map(Registrar $router)
{
$router->group([
'middleware' => 'app.isSetup',
'middleware' => 'app.hasSetting',
'setting' => 'app_name',
], function ($router) {
$router->get('/', [
'as' => 'status-page',