Added bgp peers route to display all bgp peers

This commit is contained in:
laf
2014-10-26 15:48:51 +00:00
parent f7892d0c5a
commit 3e4a494047
3 changed files with 39 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ $app->group('/api', function() use ($app) {
$app->get('/devices', 'authToken', 'list_devices')->name('list_devices');//api/v0/devices
$app->post('/devices', 'authToken', 'add_device')->name('add_device');//api/v0/devices (json data needs to be passed)
$app->delete('/devices/:hostname', 'authToken', 'del_device')->name('del_device');//api/v0/devices (json data needs to be passed)
$app->get('/bgp', 'authToken', 'list_bgp')->name('list_bgp');//api/v0/bpg
});
$app->get('/v0', 'authToken', 'show_endpoints');//api/v0
});