Added API to feed into Oxidized

This commit is contained in:
laf
2015-05-07 00:32:58 +01:00
parent 7f5a64967e
commit f5d02ab18d
3 changed files with 46 additions and 0 deletions
+1
View File
@@ -29,6 +29,7 @@ $app->setName('api');
$app->group('/api', function() use ($app) {
$app->group('/v0', function() use ($app) {
$app->get('/bgp', 'authToken', 'list_bgp')->name('list_bgp');//api/v0/bgp
$app->get('/oxidized', 'authToken', 'list_oxidized')->name('list_oxidized');
$app->group('/devices', function() use ($app) {
$app->delete('/:hostname', 'authToken', 'del_device')->name('del_device');//api/v0/devices/$hostname
$app->get('/:hostname', 'authToken', 'get_device')->name('get_device');//api/v0/devices/$hostname