ParticipantController::competition_participants($id); }); $routes->get('/competitor/:id/participations', function ($id) { ParticipantController::competitor_participations($id); }); $routes->post('/participant', function () { ParticipantController::store(); }); $routes->get('/competition/:id/participants/new', function ($id) { ParticipantController::create($id); }); $routes->get('/participant/:id/edit', function ($id) { ParticipantController::edit($id); }); $routes->post('/participant/:id/edit', function ($id) { ParticipantController::update($id); }); $routes->post('/participant/:id/destroy', function ($id) { ParticipantController::destroy($id); }); $routes->get('/competition/:id/splits', function ($id) { SplitController::competition_splits($id); }); $routes->post('/split', function () { SplitController::store(); }); $routes->get('/participant/:id/splits/new', function ($id) { SplitController::create($id); }); $routes->get('/participant/:id/splits/edit', function ($id) { SplitController::edit($id);