-
Notifications
You must be signed in to change notification settings - Fork 9
/
api.php
100 lines (55 loc) · 4.72 KB
/
api.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
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!
|
*/
Route::get('/profiles', 'DetectionProfileController@index')->middleware('auth.basic');
Route::post('/profiles', 'DetectionProfileController@make')->middleware('auth.basic');
Route::get('/profiles/{param}', 'DetectionProfileController@show')->middleware('auth.basic');
Route::get('/profiles/{param}/edit', 'DetectionProfileController@edit')->middleware('auth.basic');
Route::patch('/profiles/{param}', 'DetectionProfileController@update')->middleware('auth.basic');
Route::delete('/profiles/{param}', 'DetectionProfileController@destroy')->middleware('auth.basic');
Route::put('/profiles/{profile}/groups', 'DetectionProfileController@updateProfiles');
Route::put('/profiles/{param}/status', 'DetectionProfileController@updateStatus')->middleware('auth.basic');
Route::get('/profiles/{param}/automations', 'DetectionProfileController@showAutomations')->middleware('auth.basic');
Route::put('/profiles/{param}/automations', 'DetectionProfileController@updateAutomations')->middleware('auth.basic');
Route::get('/objectClasses', 'DeepstackController@showObjectClasses')->middleware('auth.basic');
Route::get('/events', 'DetectionEventController@index')->middleware('auth.basic');
Route::post('/events', 'DetectionEventController@make');
Route::get('/events/latest', 'DetectionEventController@showLatest')->middleware('auth.basic');
Route::get('/events/viewer', 'DetectionEventController@viewer')->middleware('auth.basic');
Route::get('/events/{event}', 'DetectionEventController@show')->middleware('auth.basic');
Route::get('/events/{event}/prev', 'DetectionEventController@findPrev')->middleware('auth.basic');
Route::get('/events/{event}/next', 'DetectionEventController@findNext')->middleware('auth.basic');
Route::get('/events/{event}/img', 'DetectionEventController@showImage')->middleware('auth.basic');
Route::get('/events/{event}/alertImage', 'DetectionEventController@alertImage')->middleware('auth.basic');
Route::get('/automations/replacements', 'AutomationController@getReplacements')->middleware('auth.basic');
Route::get('/automations/telegram', 'AutomationController@telegramConfigIndex')->middleware('auth.basic');
Route::post('/automations/telegram', 'AutomationController@makeTelegramConfig')->middleware('auth.basic');
Route::delete('/automations/telegram/{config}', 'AutomationController@deleteTelegramConfig')->middleware('auth.basic');
Route::get('/automations/webRequest', 'AutomationController@webRequestConfigIndex')->middleware('auth.basic');
Route::post('/automations/webRequest', 'AutomationController@makeWebRequestConfig')->middleware('auth.basic');
Route::delete('/automations/webRequest/{config}', 'AutomationController@deleteWebRequestConfig')->middleware('auth.basic');
Route::get('/automations/folderCopy', 'AutomationController@folderCopyConfigIndex')->middleware('auth.basic');
Route::post('/automations/folderCopy', 'AutomationController@makeFolderCopyConfig')->middleware('auth.basic');
Route::delete('/automations/folderCopy/{config}', 'AutomationController@deleteFolderCopyConfig')->middleware('auth.basic');
Route::get('/automations/smbCifsCopy', 'AutomationController@smbCifsCopyConfigIndex')->middleware('auth.basic');
Route::post('/automations/smbCifsCopy', 'AutomationController@makeSmbCifsCopyConfig')->middleware('auth.basic');
Route::delete('/automations/smbCifsCopy/{config}', 'AutomationController@deleteSmbCifsCopyConfig')->middleware('auth.basic');
Route::get('/automations/mqttPublish', 'AutomationController@mqttPublishConfigIndex')->middleware('auth.basic');
Route::post('/automations/mqttPublish', 'AutomationController@makeMqttPublishConfig')->middleware('auth.basic');
Route::delete('/automations/mqttPublish/{config}', 'AutomationController@deleteMqttPublishConfig')->middleware('auth.basic');
Route::get('/statistics', 'StatisticsController@index')->middleware('auth.basic');
Route::get('/alive', 'StatisticsController@isAlive')->middleware('auth.basic');
Route::get('/errors', 'StatisticsController@errors')->middleware('auth.basic');
Route::get('/deepstackLogs', 'StatisticsController@deepstackLogs')->middleware('auth.basic');
Route::get('/profileGroups', 'ProfileGroupController@index')->middleware('auth.basic');
Route::post('/profileGroups', 'ProfileGroupController@make')->middleware('auth.basic');
Route::any('/{any}', 'ErrorController@catchAll')->where('any', '.*')->middleware('auth.basic');