AsiakasController::index(); }); $routes->post('/asiakas', function () { AsiakasController::store(); }); $routes->get('/asiakas/uusi', function () { AsiakasController::create(); }); $routes->get('/asiakas/:id/muokkaa', function ($id) { AsiakasController::edit($id); }); $routes->post('/asiakas/:id/muokkaa', function ($id) { AsiakasController::update($id); }); $routes->post('/asiakas/:id/poista', function ($id) { AsiakasController::destroy($id); }); $routes->get('/asiakas/:id/omat_tiedot', function ($id) { AsiakasController::ownShow($id); }); $routes->get('/varaus', function () { VarausController::index(); }); $routes->post('/varaus', function () { VarausController::store(); }); $routes->get('/varaus/uusi', function () { VarausController::create(); }); $routes->get('/varaus/:id', function ($id) { VarausController::show($id);