Split setup routes and retur inline groups

This commit is contained in:
Joseph Cohen
2015-01-05 14:21:06 -06:00
parent 3b70060d09
commit 302d59f215
5 changed files with 41 additions and 53 deletions
+2 -13
View File
@@ -1,25 +1,14 @@
<?php
// Prevent access until the app is setup.
Route::group([
'before' => 'has_setting:app_name',
'namespace' => 'CachetHQ\Cachet\Http\Controllers',
], function () {
Route::group(['before' => 'has_setting:app_name', 'namespace' => 'CachetHQ\Cachet\Http\Controllers'], function () {
Route::get('/', [
'as' => 'status-page',
'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::controller('/setup', 'SetupController');
});
Route::group(['namespace' => 'CachetHQ\Cachet\Http\Controllers'], function () {
Route::get('/atom', 'AtomController@feedAction');
Route::get('/rss', 'RssController@feedAction');