Create components and incidents from the API

This commit is contained in:
manavo
2014-11-25 11:06:28 +00:00
parent 0c62f0534a
commit e104a9a317
6 changed files with 140 additions and 2 deletions
+5
View File
@@ -8,4 +8,9 @@
Route::get('incidents', 'ApiController@getIncidents');
Route::get('incidents/{id}', 'ApiController@getIncident');
Route::group(['protected' => true], function() {
Route::post('components', 'ApiController@postComponents');
Route::post('incidents', 'ApiController@postIncidents');
});
});