Endpoint for single component

This commit is contained in:
manavo
2014-11-24 18:03:55 +00:00
parent 9f54629359
commit 7e6f62702f
2 changed files with 10 additions and 0 deletions
+1
View File
@@ -4,5 +4,6 @@ Route::api(['version' => 'v1', 'prefix' => 'api'], function()
{
Route::get('components', 'ApiController@getComponents');
Route::get('components/{id}', 'ApiController@getComponent');
});