$routes->get('/drafts/new', function () { DraftController::create(); }); $routes->get('/drafts/:id', function ($id) { DraftController::show($id); }); $routes->post('/drafts', function () { DraftController::store(); yhteyscontroller::store(); }); $routes->get('/drafts/:id/edit', function ($id) { DraftController::edit($id); }); $routes->post('/drafts/:id/edit', function ($id) { DraftController::update($id); }); $routes->post('/drafts/:id/destroy', function ($id) { DraftController::destroy($id); }); $routes->get('/lista', function () { HelloWorldController::lista(); }); $routes->get('/show', function () { HelloWorldController::show(); }); $routes->get('/login', function () { HelloWorldController::login(); }); $routes->get('/modify', function () { HelloWorldController::modify(); });