Started working on ability to view an incident directly
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
]);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user