Use the app.isSetup middleware

This commit is contained in:
James Brooks
2015-09-19 12:33:36 +01:00
parent c2f8f23159
commit 45784c3720
3 changed files with 3 additions and 5 deletions

View File

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

View File

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

View File

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