From 20eb8803e0588063b90a7136a5b24938b0343002 Mon Sep 17 00:00:00 2001 From: Christos Bellas Date: Thu, 10 Jun 2021 15:10:06 +0300 Subject: [PATCH] Fixed train endpoint --- api/routes/api.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/routes/api.php b/api/routes/api.php index a440047..c2684b8 100644 --- a/api/routes/api.php +++ b/api/routes/api.php @@ -31,10 +31,11 @@ use Illuminate\Support\Facades\Route; Route::get('start', 'V1\Components\MltdController@start'); Route::get('status', 'V1\Components\MltdController@status'); Route::get('stop/{pid}', 'V1\Components\MltdController@stop'); - Route::get('{train_id}/{top}', 'V1\Components\MltdController@train'); Route::get('events/count','V1\Components\MltdController@count'); Route::get('events/group','V1\Components\MltdController@group'); Route::get('events/last','V1\Components\MltdController@last'); + //should be last since matches to anything */* + Route::get('{train_id}/{top}', 'V1\Components\MltdController@train'); }); Route::group(['prefix' => 'od'], function () { Route::get('start', 'V1\Components\OdController@start'); @@ -47,4 +48,4 @@ use Illuminate\Support\Facades\Route; }); }); -//}); +//}); \ No newline at end of file -- 2.2.2