Format routes

This commit is contained in:
Joseph Cohen
2015-01-05 13:46:08 -06:00
parent 048bf5e508
commit 3b70060d09
4 changed files with 112 additions and 27 deletions
+12 -3
View File
@@ -1,13 +1,22 @@
<?php
// Prevent access until the app is setup.
Route::group(['before' => 'has_setting:app_name', 'namespace' => 'CachetHQ\Cachet\Http\Controllers'], function () {
Route::get('/', ['as' => 'status-page', 'uses' => 'HomeController@showIndex']);
Route::group([
'before' => 'has_setting:app_name',
'namespace' => 'CachetHQ\Cachet\Http\Controllers',
], function () {
Route::get('/', [
'as' => 'status-page',
'uses' => 'HomeController@showIndex',
]);
Route::get('/incident/{incident}', 'HomeController@showIncident');
});
// Setup route.
Route::group(['before' => 'is_setup', 'namespace' => 'CachetHQ\Cachet\Http\Controllers'], function () {
Route::group([
'before' => 'is_setup',
'namespace' => 'CachetHQ\Cachet\Http\Controllers',
], function () {
Route::controller('/setup', 'SetupController');
});