Clean up all route files, alias routes etc.

This commit is contained in:
James Brooks
2015-08-07 14:52:44 +01:00
parent 5858d8063b
commit cefabcef2d
14 changed files with 183 additions and 110 deletions
+11 -7
View File
@@ -13,6 +13,11 @@ namespace CachetHQ\Cachet\Http\Routes;
use Illuminate\Contracts\Routing\Registrar;
/**
* This is the status page routes class.
*
* @author James Brooks <james@alt-three.com>
*/
class StatusPageRoutes
{
/**
@@ -22,12 +27,11 @@ class StatusPageRoutes
*/
public function map(Registrar $router)
{
// Prevent access until the app is setup.
$router->group(['middleware' => 'app.hasSetting', 'setting' => 'app_name'], function ($router) {
$router->get('/', [
'as' => 'status-page',
'uses' => 'HomeController@showIndex',
]);
});
$router->get('/', [
'middleware' => 'app.hasSetting',
'setting' => 'app_name',
'as' => 'status-page',
'uses' => 'HomeController@showIndex',
]);
}
}