}); $routes->get('/suunnitelmat/round', function () { HelloWorldController::round_list(); }); $routes->get('/suunnitelmat/round/1', function () { HelloWorldController::round_show(); }); $routes->get('/suunnitelmat/round/edit/1', function () { HelloWorldController::round_edit(); }); $routes->get('/suunnitelmat/login', function () { HelloWorldController::login(); }); ## Course $routes->get('/course', function () { CourseController::list_all(); }); $routes->post('/course', function () { CourseController::store(); }); $routes->get('/course/new', function () { CourseController::create(); }); $routes->get('/course/:id', function ($id) { CourseController::show($id); }); $routes->get('/course/:id/add', 'check_logged_in', function ($id) { RoundController::create($id); }); $routes->get('/course/:id/edit', 'check_logged_in', function ($id) { CourseController::edit($id);