1<?php
2
3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
4// See the LICENCE file in the repository root for full licence text.
5
6namespace App\Providers;
7
8use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
9use Illuminate\Support\Facades\Route;
10
11class RouteServiceProvider extends ServiceProvider
12{
13 /**
14 * This namespace is applied to the controller routes in your routes file.
15 *
16 * In addition, it is set as the URL generator's root namespace.
17 *
18 * @var string
19 */
20 protected $namespace = 'App\Http\Controllers';
21
22 /**
23 * Define the routes for the application.
24 *
25 * @param \Illuminate\Routing\Router $router
26 *
27 * @return void
28 */
29 public function map()
30 {
31 Route::group(['namespace' => $this->namespace], function ($router) {
32 require base_path('routes/web.php');
33 });
34 }
35}