Blame view
api/routes/api.php
2.43 KB
0d8c0f816 initial commit |
1 |
<?php |
0d8c0f816 initial commit |
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 Enable/disable au... |
14 15 16 |
$parameters = env('AUTH_ENABLED') ? ['middleware' => 'auth:api'] : []; Route::group($parameters, function () { |
fa297f23d Added config fetc... |
17 |
Route::get('config', 'ConfigController@index'); |
25df08e6c Merged changes fr... |
18 |
Route::get('capec', 'CapecController@index'); |
0d8c0f816 initial commit |
19 |
Route::group(['prefix' => 'v1'], function () { |
a092eba85 Added GET endpoin... |
20 |
Route::get('adt', 'V1\Partners\AdtController@get'); |
0d8c0f816 initial commit |
21 22 |
Route::post('adt', 'V1\Partners\AdtController@store'); Route::post('xlsiem', 'V1\Partners\XlsiemController@store'); |
b28322f5b Added VDM endpoint |
23 |
Route::post('vdm', 'V1\Partners\VdmController@store'); |
0d8c0f816 initial commit |
24 |
|
25df08e6c Merged changes fr... |
25 |
Route::group(['prefix' => 'ceptd'], function () { |
0d8c0f816 initial commit |
26 27 28 29 |
Route::get('start', 'V1\Components\CeptdController@start'); Route::get('status', 'V1\Components\CeptdController@status'); Route::get('stop', 'V1\Components\CeptdController@stop'); }); |
25df08e6c Merged changes fr... |
30 |
Route::group(['prefix' => 'mltd'], function () { |
0d8c0f816 initial commit |
31 32 33 |
Route::get('start', 'V1\Components\MltdController@start'); Route::get('status', 'V1\Components\MltdController@status'); Route::get('stop/{pid}', 'V1\Components\MltdController@stop'); |
7dff14cf4 Change OD, MLTD e... |
34 |
Route::get('events/count','V1\Components\MltdController@count'); |
e90472e8b Added events/grou... |
35 |
Route::get('events/group','V1\Components\MltdController@group'); |
7d8c6fcc3 Added new endpoin... |
36 |
Route::get('events/last','V1\Components\MltdController@last'); |
20eb8803e Fixed train endpoint |
37 |
//should be last since matches to anything */* |
c22d5dc20 Enable/disable au... |
38 |
Route::get('{train_id}/{top}', 'V1\Components\MltdController@train'); |
0d8c0f816 initial commit |
39 |
}); |
25df08e6c Merged changes fr... |
40 |
Route::group(['prefix' => 'od'], function () { |
0d8c0f816 initial commit |
41 42 43 44 |
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 Change OD, MLTD e... |
45 |
Route::get('events/count','V1\Components\OdController@count'); |
e90472e8b Added events/grou... |
46 |
Route::get('events/group','V1\Components\OdController@group'); |
7d8c6fcc3 Added new endpoin... |
47 |
Route::get('events/last','V1\Components\OdController@last'); |
0d8c0f816 initial commit |
48 49 |
}); }); |
c22d5dc20 Enable/disable au... |
50 |
}); |