general_controller::index(); }); $routes->get('/hiekkalaatikko', function () { general_controller::sandbox(); }); $routes->post('/logout', function () { usercontroller::logout(); }); $routes->get('/kirjaudu', function () { usercontroller::login(); }); $routes->post('/kirjaudu', function () { usercontroller::handle_login(); }); $routes->post('/rekisteroidy', function () { usercontroller::luo_kayttaja(); }); $routes->get('/leiri/:id', function ($id) { leiricontroller::leiri($id); }); $routes->get('/leiripaikka/:id', function ($id) { leiricontroller::leiripaikka($id); }); $routes->get('/leiripaikat', function () { leiricontroller::leiripaikat(); }); $routes->post('/hakemukset/hakemus/:id/muokkaa', function ($id) { Hakemuscontroller::paivita($id); }); $routes->post('/hakemukset/hakemus/:id/poista', function ($id) { Hakemuscontroller::poista($id);