Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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'));
- }
- }
Add Comment
Please, Sign In to add comment