//navigaatio $routes->get('/', function () { SiteController::index(); }); $routes->get('/tyontekijat', function () { EmployeeController::index(); }); $routes->get('/kirjaudu', function () { SiteController::login(); }); $routes->get('/rekisteroidy', function () { ClientController::create(); }); $routes->get('/varaa', function () { SiteController::reservation(); }); $routes->get('/palvelut', function () { ServiceController::index(); }); //service $routes->post('/palvelut/store', function () { ServiceController::store(); }); $routes->get('/palvelut/new', function () { ServiceController::create(); }); $routes->get('/palvelut/:id', function ($id) { ServiceController::show($id); }); $routes->get('/palvelut/:id/edit', function ($id) {