Cleanup middleware and routes

This commit is contained in:
Graham Campbell
2015-12-24 17:30:59 +00:00
parent 9957e2ec15
commit a1b7bb8cce
16 changed files with 61 additions and 195 deletions
+3 -4
View File
@@ -24,13 +24,12 @@ class StatusPageRoutes
* Define the status page routes.
*
* @param \Illuminate\Contracts\Routing\Registrar $router
*
* @return void
*/
public function map(Registrar $router)
{
$router->group([
'middleware' => ['web', 'app.hasSetting', 'localize'],
'setting' => 'app_name',
], function ($router) {
$router->group(['middleware' => ['web', 'ready', 'localize']], function ($router) {
$router->get('/', [
'as' => 'status-page',
'uses' => 'StatusPageController@showIndex',