Added dynamic adding and loading of results on the test page
This commit is contained in:
@ -36,6 +36,11 @@ $app->group('/reports', function(RouteCollectorProxy $group) {
|
||||
});
|
||||
|
||||
$app->group('/api', function(RouteCollectorProxy $group) {
|
||||
$group->get('/benchmark/{benchmark_id}', '\\BitGoblin\\Colossus\\Controllers\\ApiController:getBenchmark')->setName('api.benchmark');
|
||||
$group->get('/benchmark/{benchmark_id}/tests', '\\BitGoblin\\Colossus\\Controllers\\ApiController:getBenchmarkTests')->setName('api.benchmark');
|
||||
$group->group('/v1', function(RouteCollectorProxy $apiv1) {
|
||||
$apiv1->get('/benchmark/details', '\\BitGoblin\\Colossus\\Controllers\\ApiController:getBenchmarkDetails')->setName('api.benchmarkDetails');
|
||||
$apiv1->get('/benchmark/tests', '\\BitGoblin\\Colossus\\Controllers\\ApiController:getBenchmarkTests')->setName('api.benchmarkTests');
|
||||
|
||||
$apiv1->get('/result/list', '\\BitGoblin\\Colossus\\Controllers\\ApiController:getResultList')->setName('api.resultList');
|
||||
$apiv1->post('/result/add', '\\BitGoblin\\Colossus\\Controllers\\ApiController:postResultAdd')->setName('api.resultAdd');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user