mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Get services from API
/services = list all services /services/:hostname = get services by host
This commit is contained in:
@@ -154,6 +154,15 @@ $app->group(
|
||||
}
|
||||
);
|
||||
// End Resources
|
||||
// Service section
|
||||
$app->group(
|
||||
'/services',
|
||||
function () use ($app) {
|
||||
$app->get('/:hostname', 'authToken', 'list_services')->name('get_service_for_host');
|
||||
}
|
||||
);
|
||||
$app->get('/services', 'authToken', 'list_services')->name('list_services');
|
||||
// End Service
|
||||
}
|
||||
);
|
||||
$app->get('/v0', 'authToken', 'show_endpoints');
|
||||
|
||||
Reference in New Issue
Block a user