mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
Added API call for listing devices by groups
This commit is contained in:
@@ -62,6 +62,12 @@ $app->group(
|
||||
// api/v0/devices
|
||||
$app->post('/devices', 'authToken', 'add_device')->name('add_device');
|
||||
// api/v0/devices (json data needs to be passed)
|
||||
$app->group(
|
||||
'/devicegroups',
|
||||
function () use ($app) {
|
||||
$app->get('/:name', 'authToken', 'get_devices_by_group')->name('get_devices_by_group');
|
||||
}
|
||||
);
|
||||
$app->get('/devicegroups', 'authToken', 'get_device_groups')->name('get_devicegroups');
|
||||
$app->group(
|
||||
'/portgroups',
|
||||
|
||||
Reference in New Issue
Block a user