api: Added api routes for eventlog, syslog, alertlog, authlog (#7071)

This commit is contained in:
Neil Lathwood
2017-07-27 19:56:38 +01:00
committed by GitHub
parent cd006d1842
commit fc2041caaf
3 changed files with 161 additions and 1 deletions

View File

@@ -168,6 +168,15 @@ $app->group(
);
$app->get('/services', 'authToken', 'list_services')->name('list_services');
// End Service
$app->group(
'/logs',
function () use ($app) {
$app->get('/eventlog(/:hostname)', 'authToken', 'list_logs')->name('list_eventlog');
$app->get('/syslog(/:hostname)', 'authToken', 'list_logs')->name('list_syslog');
$app->get('/alertlog(/:hostname)', 'authToken', 'list_logs')->name('list_alertlog');
$app->get('/authlog(/:hostname)', 'authToken', 'list_logs')->name('list_authlog');
}
);
}
);
$app->get('/v0', 'authToken', 'show_endpoints');