}
// Stats
$routes->get('/', function () {
    StatsController::stats();
});
$routes->get('/stats', function () {
    StatsController::stats();
});
// Radat
// Ratojen listaussivu
$routes->get('/course', 'check_logged_in', function () {
    CourseController::index();
});
// Radan lisääminen tietokantaan
$routes->post('/course', 'check_logged_in', function () {
    CourseController::store();
});
// Radan lisäyssivu
$routes->get('/course/new', 'check_logged_in', function () {
    CourseController::create();
});
// Radan esittelysivu
$routes->get('/course/:courseid', 'check_logged_in', function ($courseid) {
    CourseController::show($courseid);
});
// Radan muokkauslomakkeen esittäminen (vain admin)
$routes->get('/course/:courseid/edit', 'check_admin_logged_in', function ($courseid) {
    CourseController::edit($courseid);
});
// Radan muokkaaminen (vain admin)
$routes->post('/course/:courseid/edit', 'check_admin_logged_in', function ($courseid) {