Linking directly to an individual incident
This commit is contained in:
@@ -94,6 +94,7 @@ class StatusPageController extends Controller
|
||||
*/
|
||||
public function showIncident(Incident $incident)
|
||||
{
|
||||
|
||||
return View::make('incident')
|
||||
->withIncident($incident);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,12 +33,12 @@ class StatusPageRoutes
|
||||
], function ($router) {
|
||||
$router->get('/', [
|
||||
'as' => 'status-page',
|
||||
'uses' => 'HomeController@showIndex',
|
||||
'uses' => 'StatusPageController@showIndex',
|
||||
]);
|
||||
|
||||
$router->get('incident/{incident}', [
|
||||
'as' => 'incident',
|
||||
'uses' => 'HomeController@showIncident',
|
||||
'uses' => 'StatusPageController@showIncident',
|
||||
]);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user