server/src/routes/api.php
changeset 569 2815e71c65fb
parent 424 feb0d3e0fef9
equal deleted inserted replaced
568:fd2a9b706231 569:2815e71c65fb
    12 Route::group(['prefix' => 'v1'] , function() {
    12 Route::group(['prefix' => 'v1'] , function() {
    13 
    13 
    14     Route::pattern('id', ".*");
    14     Route::pattern('id', ".*");
    15     Route::get('documents/{id}/transcript', 'Api\DocumentController@transcript');
    15     Route::get('documents/{id}/transcript', 'Api\DocumentController@transcript');
    16     Route::resource('documents', 'Api\DocumentController', [
    16     Route::resource('documents', 'Api\DocumentController', [
    17             'only' => ['index', 'show', 'update']
    17             'only' => ['index', 'show']
    18     ]);
    18     ]);
    19 
    19 
    20 
    20 
    21     Route::group(['prefix' => 'resolvers'], function() {
    21     Route::group(['prefix' => 'resolvers'], function() {
    22         Route::get('viaf/{id}', 'Api\ViafController@show');
    22         Route::get('viaf/{id}', 'Api\ViafController@show');