| @@ 38-45 (lines=8) @@ | ||
| 35 | } |
|
| 36 | ||
| 37 | if (!$exceptAll) { |
|
| 38 | if (!in_array('index', $except)) { |
|
| 39 | $this->get($prefix, [ |
|
| 40 | 'as' => $prefix.'.index', |
|
| 41 | 'uses' => $controller.'@index', |
|
| 42 | 'description' => 'Buscar todos', |
|
| 43 | 'descriptionGroup' => $descriptionGroup, |
|
| 44 | ]); |
|
| 45 | } |
|
| 46 | ||
| 47 | if (!in_array('show', $except)) { |
|
| 48 | $this->get($prefix.'/{id:[0-9]+}', [ |
|
| @@ 65-72 (lines=8) @@ | ||
| 62 | ]); |
|
| 63 | } |
|
| 64 | ||
| 65 | if (!in_array('update', $except)) { |
|
| 66 | $this->put($prefix.'/{id:[0-9]+}', [ |
|
| 67 | 'as' => $prefix.'.update', |
|
| 68 | 'uses' => $controller.'@update', |
|
| 69 | 'description' => 'Editar', |
|
| 70 | 'descriptionGroup' => $descriptionGroup, |
|
| 71 | ]); |
|
| 72 | } |
|
| 73 | ||
| 74 | if (!in_array('destroy', $except)) { |
|
| 75 | $this->delete($prefix.'/{id:[0-9]+}', [ |
|