Esempio n. 1
0
function check_logged_in()
{
    BaseController::check_logged_in();
}
$routes->get('/', function () {
    CourseController::list_all();
});
$routes->get('/hiekkalaatikko', function () {
    HelloWorldController::sandbox();
});
$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 () {