Added API route to update devices columns in DB

This commit is contained in:
laf
2015-12-08 22:53:52 +00:00
parent a2d97f4283
commit 977cdd558d
3 changed files with 66 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ $app->group(
// api/v0/devices/$hostname
$app->get('/:hostname', 'authToken', 'get_device')->name('get_device');
// api/v0/devices/$hostname
$app->patch('/:hostname', 'authToken', 'update_device')->name('update_device_field');
$app->get('/:hostname/vlans', 'authToken', 'get_vlans')->name('get_vlans');
// api/v0/devices/$hostname/vlans
$app->get('/:hostname/graphs', 'authToken', 'get_graphs')->name('get_graphs');