| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php namespace Arcanesoft\Backups\Http\Routes; |
||
| 21 | public function map() |
||
| 22 | { |
||
| 23 | 4 | $this->prefix('statuses')->as('statuses.')->group(function () { |
|
| 24 | 4 | $this->get('/', 'StatusesController@index') |
|
| 25 | 4 | ->name('index'); // admin::backups.statuses.index |
|
| 26 | |||
| 27 | 4 | $this->post('backup', 'StatusesController@backup') |
|
| 28 | 4 | ->middleware('ajax') |
|
| 29 | 4 | ->name('backup'); // admin::backups.statuses.backup |
|
| 30 | |||
| 31 | 4 | $this->post('clear', 'StatusesController@clear') |
|
| 32 | 4 | ->middleware('ajax') |
|
| 33 | 4 | ->name('clear'); // admin::backups.statuses.clear |
|
| 34 | |||
| 35 | 4 | $this->get('{index}', 'StatusesController@show') |
|
| 36 | 4 | ->name('show'); // admin::backups.statuses.clear |
|
| 37 | 4 | }); |
|
| 38 | } |
||
| 39 | } |
||
| 40 |