Added ability to edit benchmarks

This commit is contained in:
Gregory Ballantine
2025-06-26 12:57:27 -04:00
parent 23cfbc2efa
commit 4f0cb54190
4 changed files with 82 additions and 1 deletions

View File

@ -9,7 +9,13 @@ $app->group('/benchmark', function(RouteCollectorProxy $group) {
$group->get('/list', '\\BitGoblin\\Colossus\\Controllers\\BenchmarkController:getList')->setName('benchmark.list');
$group->get('/add', '\\BitGoblin\\Colossus\\Controllers\\BenchmarkController:getAdd')->setName('benchmark.add');
$group->post('/add', '\\BitGoblin\\Colossus\\Controllers\\BenchmarkController:postAdd');
$group->get('/{benchmark_id}', '\\BitGoblin\\Colossus\\Controllers\\BenchmarkController:getView')->setName('benchmark.view');
$group->group('/{benchmark_id}', function(RouteCollectorProxy $benchmark) {
$benchmark->get('', '\\BitGoblin\\Colossus\\Controllers\\BenchmarkController:getView')->setName('benchmark.view');
$benchmark->get('/edit', '\\BitGoblin\\Colossus\\Controllers\\BenchmarkController:getEdit')->setName('benchmark.edit');
$benchmark->post('/edit', '\\BitGoblin\\Colossus\\Controllers\\BenchmarkController:postEdit');
});
});
$app->group('/component', function(RouteCollectorProxy $group) {