示例#1
0
});
$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) {
    ServiceController::edit($id);
});
$routes->post('/palvelut/:id/edit', function ($id) {
    ServiceController::update($id);
});
$routes->post('/palvelut/:id/destroy', function ($id) {
    ServiceController::destroy($id);
});
//employee
$routes->post('/tyontekijat/store', function () {