Guest User

Untitled

a guest
Jun 24th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Providers;
  4.  
  5. use Illuminate\Support\Facades\Route;
  6. use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
  7.  
  8. class RouteServiceProvider extends ServiceProvider
  9. {
  10. /**
  11. * Define the routes for the application.
  12. *
  13. * @return void
  14. */
  15. public function map()
  16. {
  17. $this->mapModulesRoutes();
  18. }
  19.  
  20. protected function mapModulesRoutes()
  21. {
  22. // Use the middleware 'web' if you're writing a Web Application
  23. Route::middleware('api')
  24. ->group(base_path('routes/modules.php'));
  25. }
  26. }
Add Comment
Please, Sign In to add comment