|
@@ 17-24 (lines=8) @@
|
| 14 |
|
$this->post('/{entity:user}/request-password-reset', 'App\Controller\UserController:actionRequestPasswordReset'); |
| 15 |
|
$this->post('/{entity:user}/password-reset', 'App\Controller\UserController:actionPasswordReset'); |
| 16 |
|
|
| 17 |
|
$this->group('/{entity:user}', function() { |
| 18 |
|
$this->get('', 'App\Controller\UserController:actionIndex'); |
| 19 |
|
$this->post('', 'App\Controller\UserController:actionCreate'); |
| 20 |
|
$this->get('/{id:[0-9]+}', 'App\Controller\UserController:actionGet'); |
| 21 |
|
$this->put('/{id:[0-9]+}', 'App\Controller\UserController:actionUpdate'); |
| 22 |
|
$this->patch('/{id:[0-9]+}', 'App\Controller\UserController:actionUpdate'); |
| 23 |
|
$this->delete('/{id:[0-9]+}', 'App\Controller\UserController:actionDelete'); |
| 24 |
|
})->add(new \App\Middleware\Authentication($this->getContainer()->get('acl'), $this->getContainer()->get('settings'))); |
| 25 |
|
|
| 26 |
|
$this->group('/{entity:role|right}', function() { |
| 27 |
|
$this->get('', 'App\Controller\CrudController:actionIndex'); |
|
@@ 26-33 (lines=8) @@
|
| 23 |
|
$this->delete('/{id:[0-9]+}', 'App\Controller\UserController:actionDelete'); |
| 24 |
|
})->add(new \App\Middleware\Authentication($this->getContainer()->get('acl'), $this->getContainer()->get('settings'))); |
| 25 |
|
|
| 26 |
|
$this->group('/{entity:role|right}', function() { |
| 27 |
|
$this->get('', 'App\Controller\CrudController:actionIndex'); |
| 28 |
|
$this->get('/{id:[0-9]+}', 'App\Controller\CrudController:actionGet'); |
| 29 |
|
$this->post('', 'App\Controller\CrudController:actionCreate'); |
| 30 |
|
$this->put('/{id:[0-9]+}', 'App\Controller\CrudController:actionUpdate'); |
| 31 |
|
$this->patch('/{id:[0-9]+}', 'App\Controller\CrudController:actionUpdate'); |
| 32 |
|
$this->delete('/{id:[0-9]+}', 'App\Controller\CrudController:actionDelete'); |
| 33 |
|
})->add(new \App\Middleware\Authentication($this->getContainer()->get('acl'), $this->getContainer()->get('settings'))); |
| 34 |
|
|
| 35 |
|
$this->group('/{entity:log}', function() { |
| 36 |
|
$this->get('', 'App\Controller\CrudController:actionIndex'); |