diff -r 5564f5065f81 -r 78990a8a069b server/src/routes/api.php --- a/server/src/routes/api.php Mon Oct 03 16:32:41 2016 +0200 +++ b/server/src/routes/api.php Tue Oct 04 11:58:39 2016 +0200 @@ -11,36 +11,26 @@ */ Route::group(['prefix' => 'v1'] , function() { - Route::group(['prefix' => 'documents'], function() { - Route::pattern('id', ".*"); - Route::get('{id}/transcript', 'Api\DocumentController@transcript'); - Route::resource('', 'Api\DocumentController', - ['only' => ['index', 'show', 'update']]); - }); + Route::pattern('id', ".*"); + Route::get('documents/{id}/transcript', 'Api\DocumentController@transcript'); + Route::resource('documents', 'Api\DocumentController', [ + 'only' => ['index', 'show', 'update'] + ]); Route::group(['prefix' => 'resolvers'], function() { - Route::resource('viaf', 'Api\ViafController', - ['only' => ['show']]); - Route::resource('lexvo', 'Api\LexvoController', - ['only' => ['show']]); - Route::resource('bnf', 'Api\BnfController', - ['only' => ['index','show']]); - Route::resource('geonames', 'Api\GeonamesController', - ['only' => ['index','show']]); + Route::get('viaf/{id}', 'Api\ViafController@show'); + Route::get('lexvo/{id}', 'Api\LexvoController@show'); + Route::get('bnf/{id}', 'Api\BnfController@show'); + Route::get('geonames/{id}', 'Api\GeonamesController@show'); }); Route::group(['prefix' => 'stats'], function() { - Route::resource('languages', 'Api\LanguageController', - ['only' => ['index']]); - Route::resource('themes', 'Api\ThemeController', - ['only' => ['index']]); - Route::resource('discourses', 'Api\DiscourseController', - ['only' => ['index']]); - Route::resource('datestats', 'Api\DateStatsController', - ['only' => ['index']]); - Route::resource('geostats', 'Api\GeoStatsController', - ['only' => ['index']]); + Route::get('languages', 'Api\LanguageController@index'); + Route::get('themes', 'Api\ThemeController@index'); + Route::get('discourses', 'Api\DiscourseController@index'); + Route::get('datestats', 'Api\DateStatsController@index'); + Route::get('geostats', 'Api\GeoStatsController@index'); }); });