Merge pull request #315 from laf/issue-laf-58

Added the ability to call the api for a list of endpoints
This commit is contained in:
Paul Gear
2014-10-22 21:46:34 +10:00
2 changed files with 14 additions and 0 deletions
+1
View File
@@ -40,6 +40,7 @@ $app->group('/api', function() use ($app) {
$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('/v0', 'authToken', 'show_endpoints');//api/v0
});
$app->run();