Projekt

Obecné

Profil

Stáhnout (854 Bajtů) Statistiky
| Větev: | Revize:
1
<?php
2

    
3
/*
4
|--------------------------------------------------------------------------
5
| Application Routes
6
|--------------------------------------------------------------------------
7
|
8
| Here is where you can register all of the routes for an application.
9
| It is a breeze. Simply tell Lumen the URIs it should respond to
10
| and give it the Closure to call when that URI is requested.
11
|
12
*/
13

    
14
$apiUrlRoot='/api/v1/';
15

    
16
$app->get('/', function ()  {
17
    return 'Funguje to.';
18
});
19

    
20
/**
21
 * Parametry v url:
22
 * address
23
 * showDirection
24
 */
25
$app->get($apiUrlRoot.'devices', 'DeviceController@getDevice');
26

    
27
/**
28
 * Parametry v url:
29
 * dateFrom
30
 * dateTo
31
 * timeFrom
32
 * timeTo
33
 * direction
34
 */
35
$app->get($apiUrlRoot.'devices/{id}', 'DeviceController@getDeviceById');
36

    
37
/**
38
 * Vrati vsechny typy aut.
39
 */
40
$app->get($apiUrlRoot.'vehicles', 'VehicleController@getAll');
    (1-1/1)