Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 73804802

Přidáno uživatelem Cajova-Houba před téměř 7 roky(ů)

refs #6742: Pridano api pro generovani JWT.

Zobrazit rozdíly:

backend/app/Http/routes.php
13 13

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

  
16
/**
17
 * Welcome endpoint.
18
 */
16 19
$app->get('/', function ()  {
17
    return 'Funguje to.';
20
    return 'Welcome.';
18 21
});
19 22

  
20 23
/**
......
24 27
 */
25 28
$app->get($apiUrlRoot.'devices', 'DeviceController@getDevice');
26 29

  
27
$app->get($apiUrlRoot.'devices/all', 'DeviceController@getAll');
30
//$app->get($apiUrlRoot.'devices/all', 'DeviceController@getAll');
28 31

  
29 32
/**
30 33
 * Parametry v url:
......
36 39
 */
37 40
$app->get($apiUrlRoot.'devices/{id}', 'DeviceController@getDeviceById');
38 41

  
39
//$app->get($apiUrlRoot.'devices/lastday', 'DeviceController@lastDay');
40

  
41 42
/**
42 43
 * Vrati vsechny typy aut.
43 44
 */
44 45
$app->get($apiUrlRoot.'vehicles', 'VehicleController@getAll');
45 46

  
47
/**
48
 * Vrati vsechna mesta.
49
 */
46 50
$app->get($apiUrlRoot.'cities', 'LocationController@getCities');
47 51

  
52
/**
53
 * Vygeneruje novy JWT s omezenou platnosti.
54
 */
55
$app->get($apiUrlRoot.'token', 'TokenController@generateToken');
56

  
57

  
58

  
59
// testovani
60
$app->get($apiUrlRoot.'header', 'DeviceController@headerTest');

Také k dispozici: Unified diff