mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Adding API route to set bgpPeerDescr field (#13056)
* Adding API route to set bgpPeerDescr field * Fixing CI test * Fixing CI test part 2 * Adding validation of bgpPeerId as integer and changing SQL request with question mark syntax. * Fixing CI test * Following murrant's advices to protect against SQL injection * Use built in json function Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
@@ -84,6 +84,7 @@ Route::group(['prefix' => 'v0', 'namespace' => '\App\Api\Controllers'], function
|
||||
Route::delete('locations/{location}', 'LegacyApiController@del_location')->name('del_location');
|
||||
Route::delete('services/{id}', 'LegacyApiController@del_service_from_host')->name('del_service_from_host');
|
||||
Route::patch('services/{id}', 'LegacyApiController@edit_service_for_host')->name('edit_service_for_host');
|
||||
Route::post('bgp/{id}', 'LegacyApiController@edit_bgp_descr')->name('edit_bgp_descr');
|
||||
});
|
||||
|
||||
// restricted by access
|
||||
|
Reference in New Issue
Block a user