server/src/routes/api.php
author ymh <ymh.work@gmail.com>
Fri, 17 Nov 2017 00:06:39 +0100
changeset 556 a31f1343b913
parent 424 feb0d3e0fef9
child 569 2815e71c65fb
permissions -rw-r--r--
Correct header and footer for backend pages

<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
|
*/
Route::group(['prefix' => 'v1'] , function() {

    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::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::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('dateminmax', 'Api\DateStatsController@minmax');
        Route::get('geostats', 'Api\GeoStatsController@index');
    });
});