Added the ability to call the api for a list of endpoints

This commit is contained in:
Neil Lathwood
2014-10-09 16:20:04 +00:00
parent 88fb66c774
commit 0be049fde9
2 changed files with 13 additions and 0 deletions

View File

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