| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | 75 | public function boot(): void |
|
| 35 | { |
||
| 36 | 75 | $this->configureRateLimiting(); |
|
| 37 | |||
| 38 | 75 | $this->routes(function () { |
|
| 39 | 75 | Route::middleware('api') |
|
| 40 | 75 | ->prefix('api') |
|
| 41 | 75 | ->group(base_path('routes/api.php')); |
|
| 42 | |||
| 43 | 75 | Route::middleware('web') |
|
| 44 | 75 | ->group(base_path('routes/web.php')); |
|
| 45 | |||
| 46 | 75 | Route::prefix('admin') |
|
| 47 | 75 | ->as('admin.') |
|
| 48 | 75 | ->middleware('web') |
|
| 49 | 75 | ->group(base_path('routes/admin.php')); |
|
| 50 | 75 | }); |
|
| 63 |