Started working on ability to view an incident directly

This commit is contained in:
James Brooks
2015-08-15 11:02:14 +01:00
parent c928c99c8f
commit c2c815ab14
2 changed files with 25 additions and 5 deletions

View File

@@ -84,4 +84,16 @@ class StatusPageController extends Controller
->withPreviousDate($startDate->copy()->subDays($daysToShow)->toDateString())
->withNextDate($startDate->copy()->addDays($daysToShow)->toDateString());
}
/**
* Shows an incident in more detail.
*
* @param \CachetHQ\Cachet\Models\Incident $incident
*
* @return \Illuminate\View\View
*/
public function showIncident(Incident $incident)
{
}
}

View File

@@ -27,11 +27,19 @@ class StatusPageRoutes
*/
public function map(Registrar $router)
{
$router->get('/', [
'middleware' => ['app.hasSetting', 'localize'],
$router->group([
'middleware' => 'app.hasSetting',
'setting' => 'app_name',
'as' => 'status-page',
'uses' => 'StatusPageController@showIndex',
]);
], function ($router) {
$router->get('/', [
'as' => 'status-page',
'uses' => 'HomeController@showIndex',
]);
$router->get('incident/{incident}', [
'as' => 'incident',
'uses' => 'HomeController@showIncident',
]);
});
}
}