Created
June 23, 2018 11:25
-
-
Save deleugpn/ce28ff65f9acc27230e6fdd94de95027 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\Facades\Route; | |
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; | |
class RouteServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Define the routes for the application. | |
* | |
* @return void | |
*/ | |
public function map() | |
{ | |
$this->mapModulesRoutes(); | |
} | |
protected function mapModulesRoutes() | |
{ | |
// Use the middleware 'web' if you're writing a Web Application | |
Route::middleware('api') | |
->group(base_path('routes/modules.php')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment