get('/', '\\BitGoblin\\Colossus\\Controllers\\HomeController:getIndex')->setName('dashboard'); $app->group('/benchmark', function(RouteCollectorProxy $group) { $group->get('', '\\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('/{test_id}', '\\BitGoblin\\Colossus\\Controllers\\BenchmarkController:getView')->setName('benchmark.view'); }); $app->group('/component', function(RouteCollectorProxy $group) { $group->get('', '\\BitGoblin\\Colossus\\Controllers\\ComponentController:getList')->setName('component.list'); $group->get('/add', '\\BitGoblin\\Colossus\\Controllers\\ComponentController:getAdd')->setName('component.add'); $group->post('/add', '\\BitGoblin\\Colossus\\Controllers\\ComponentController:postAdd'); $group->get('/{test_id}', '\\BitGoblin\\Colossus\\Controllers\\ComponentController:getView')->setName('component.view'); }); $app->group('/test', function(RouteCollectorProxy $group) { $group->get('', '\\BitGoblin\\Colossus\\Controllers\\TestController:getList')->setName('test.list'); $group->get('/add', '\\BitGoblin\\Colossus\\Controllers\\TestController:getAdd')->setName('test.add'); $group->post('/add', '\\BitGoblin\\Colossus\\Controllers\\TestController:postAdd'); $group->get('/{test_id}', '\\BitGoblin\\Colossus\\Controllers\\TestController:getView')->setName('test.view'); }); $app->group('/result', function(RouteCollectorProxy $group) { $group->get('', '\\BitGoblin\\Colossus\\Controllers\\ResultController:getList')->setName('result.list'); $group->get('/add', '\\BitGoblin\\Colossus\\Controllers\\ResultController:getAdd')->setName('result.add'); $group->post('/add', '\\BitGoblin\\Colossus\\Controllers\\ResultController:postAdd'); });