Added dynamic adding and loading of results on the test page

This commit is contained in:
2025-06-25 17:14:19 -04:00
parent fad6899683
commit 1b4fd8dec9
6 changed files with 112 additions and 20 deletions

View File

@ -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');
});
});