Commit 20eb8803e0588063b90a7136a5b24938b0343002
1 parent
cfd27a3cbe
Exists in
master
and in
3 other branches
Fixed train endpoint
Showing 1 changed file with 3 additions and 2 deletions
api/routes/api.php
View file @
20eb880
... | ... | @@ -31,10 +31,11 @@ |
31 | 31 | Route::get('start', 'V1\Components\MltdController@start'); |
32 | 32 | Route::get('status', 'V1\Components\MltdController@status'); |
33 | 33 | Route::get('stop/{pid}', 'V1\Components\MltdController@stop'); |
34 | - Route::get('{train_id}/{top}', 'V1\Components\MltdController@train'); | |
35 | 34 | Route::get('events/count','V1\Components\MltdController@count'); |
36 | 35 | Route::get('events/group','V1\Components\MltdController@group'); |
37 | 36 | Route::get('events/last','V1\Components\MltdController@last'); |
37 | + //should be last since matches to anything */* | |
38 | + Route::get('{train_id}/{top}', 'V1\Components\MltdController@train'); | |
38 | 39 | }); |
39 | 40 | Route::group(['prefix' => 'od'], function () { |
40 | 41 | Route::get('start', 'V1\Components\OdController@start'); |