API Call for triggering Device discovery (#10861)

This commit is contained in:
SourceDoctor
2019-12-08 22:17:27 +01:00
committed by PipoCanaja
parent f4ec978c08
commit 4232bf2f36
4 changed files with 67 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ Route::group(['prefix' => 'v0', 'namespace' => '\App\Api\Controllers'], function
// restricted by access
Route::group(['prefix' => 'devices'], function () {
Route::get('{hostname}', 'LegacyApiController@get_device')->name('get_device');
Route::get('{hostname}/discover', 'LegacyApiController@trigger_device_discovery')->name('trigger_device_discovery');
Route::get('{hostname}/graphs/health/{type}/{sensor_id?}', 'LegacyApiController@get_graph_generic_by_hostname')->name('get_health_graph');
Route::get('{hostname}/graphs/wireless/{type}/{sensor_id?}', 'LegacyApiController@get_graph_generic_by_hostname')->name('get_wireless_graph');
Route::get('{hostname}/vlans', 'LegacyApiController@get_vlans')->name('get_vlans');