Use include for relations

This commit is contained in:
Joseph Cohen
2015-02-23 00:00:20 -06:00
parent 683dccbfac
commit cdd31ed05d
4 changed files with 61 additions and 13 deletions
-1
View File
@@ -4,7 +4,6 @@ Route::api(['after' => 'allowed_domains', 'namespace' => 'CachetHQ\Cachet\Http\C
// Components
Route::get('components', 'ComponentController@getComponents');
Route::get('components/{id}', 'ComponentController@getComponent');
Route::get('components/{id}/incidents', 'ComponentController@getComponentIncidents');
// Incidents
Route::get('incidents', 'IncidentController@getIncidents');