Blame view
api/routes/api.php
2.65 KB
0d8c0f816
|
1 |
<?php |
0d8c0f816
|
2 3 4 5 6 7 8 9 10 11 12 13 |
use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | is assigned the "api" middleware group. Enjoy building your API! | */ |
c22d5dc20
|
14 |
$parameters = env('AUTH_ENABLED') ? ['middleware' => 'auth:api'] : []; |
c0c5f5114
|
15 16 |
// keycloak endpoint should be auth free Route::get('keycloak', 'ConfigController@keycloak'); |
c22d5dc20
|
17 |
Route::group($parameters, function () { |
fa297f23d
|
18 |
Route::get('config', 'ConfigController@index'); |
25df08e6c
|
19 |
Route::get('capec', 'CapecController@index'); |
0d8c0f816
|
20 |
Route::group(['prefix' => 'v1'], function () { |
a092eba85
|
21 |
Route::get('adt', 'V1\Partners\AdtController@get'); |
0d8c0f816
|
22 |
Route::post('adt', 'V1\Partners\AdtController@store'); |
2f4aeec4c
|
23 |
Route::get('xlsiem', 'V1\Partners\XlsiemController@get'); |
0d8c0f816
|
24 |
Route::post('xlsiem', 'V1\Partners\XlsiemController@store'); |
2f4aeec4c
|
25 |
Route::get('vdm', 'V1\Partners\VdmController@get'); |
b28322f5b
|
26 |
Route::post('vdm', 'V1\Partners\VdmController@store'); |
0d8c0f816
|
27 |
|
25df08e6c
|
28 |
Route::group(['prefix' => 'ceptd'], function () { |
0d8c0f816
|
29 30 31 32 |
Route::get('start', 'V1\Components\CeptdController@start'); Route::get('status', 'V1\Components\CeptdController@status'); Route::get('stop', 'V1\Components\CeptdController@stop'); }); |
25df08e6c
|
33 |
Route::group(['prefix' => 'mltd'], function () { |
0d8c0f816
|
34 35 36 |
Route::get('start', 'V1\Components\MltdController@start'); Route::get('status', 'V1\Components\MltdController@status'); Route::get('stop/{pid}', 'V1\Components\MltdController@stop'); |
7dff14cf4
|
37 |
Route::get('events/count','V1\Components\MltdController@count'); |
e90472e8b
|
38 |
Route::get('events/group','V1\Components\MltdController@group'); |
7d8c6fcc3
|
39 |
Route::get('events/last','V1\Components\MltdController@last'); |
20eb8803e
|
40 |
//should be last since matches to anything */* |
c22d5dc20
|
41 |
Route::get('{train_id}/{top}', 'V1\Components\MltdController@train'); |
0d8c0f816
|
42 |
}); |
25df08e6c
|
43 |
Route::group(['prefix' => 'od'], function () { |
0d8c0f816
|
44 45 46 47 |
Route::get('start', 'V1\Components\OdController@start'); Route::get('status', 'V1\Components\OdController@status'); Route::get('stop/{pid}', 'V1\Components\OdController@stop'); Route::post('analyze/{pid}', 'V1\Components\OdController@analyze'); |
7dff14cf4
|
48 |
Route::get('events/count','V1\Components\OdController@count'); |
e90472e8b
|
49 |
Route::get('events/group','V1\Components\OdController@group'); |
7d8c6fcc3
|
50 |
Route::get('events/last','V1\Components\OdController@last'); |
0d8c0f816
|
51 52 |
}); }); |
c22d5dc20
|
53 |
}); |