示例#1
0
    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 () {
    EmployeeController::store();
});
$routes->get('/tyontekijat/new', function () {
    EmployeeController::create();
});
$routes->get('/tyontekijat/:id', function ($id) {
    EmployeeController::show($id);
});
$routes->get('/tyontekijat/:id/edit', function ($id) {
    EmployeeController::edit($id);
});
$routes->post('/tyontekijat/:id/edit', function ($id) {