Added add_device api call

This commit is contained in:
laf
2014-09-16 22:19:28 +01:00
parent b8df0596a9
commit ad6d425333
3 changed files with 82 additions and 12 deletions
+3
View File
@@ -51,6 +51,9 @@ $app->group('/api', function() use ($app) {
$app->group('/list', function() use ($app) {
$app->get('/devices(/:order)(/:type)(/)', 'authToken', 'list_devices');//api/v1/list/devices (order can be any device column) (types = all, ignored, up, down, disabled)
});
$app->group('/add', function() use ($app) {
$app->post('/device(/)', 'authToken', 'add_device');//api/v1/add/device (json data needs to be passed)
});
});
});