| Total Complexity | 4 |
| Total Lines | 65 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class RouteServiceProvider extends ServiceProvider |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * This namespace is applied to your controller routes. |
||
| 12 | * |
||
| 13 | * In addition, it is set as the URL generator's root namespace. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $namespace = 'App\Http\Controllers'; |
||
| 18 | |||
| 19 | protected $apiNamespace = 'App\Http\Controllers\Api'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Define your route model bindings, pattern filters, etc. |
||
| 23 | * |
||
| 24 | * @return void |
||
| 25 | */ |
||
| 26 | public function boot() |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Define the routes for the application. |
||
| 35 | * |
||
| 36 | * @return void |
||
| 37 | */ |
||
| 38 | public function map() |
||
| 39 | { |
||
| 40 | $this->mapApiRoutes(); |
||
| 41 | |||
| 42 | $this->mapWebRoutes(); |
||
| 43 | |||
| 44 | // |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Define the "web" routes for the application. |
||
| 49 | * |
||
| 50 | * These routes all receive session state, CSRF protection, etc. |
||
| 51 | * |
||
| 52 | * @return void |
||
| 53 | */ |
||
| 54 | protected function mapWebRoutes() |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Define the "api" routes for the application. |
||
| 63 | * |
||
| 64 | * These routes are typically stateless. |
||
| 65 | * |
||
| 66 | * @return void |
||
| 67 | */ |
||
| 68 | protected function mapApiRoutes() |
||
| 75 |