Facebook
From Mustard Octupus, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 228
  1.     /**
  2.      * Define the routes for the application.
  3.      *
  4.      * @return void
  5.      */
  6.     public function map()
  7.     {
  8.         $lp_domains = \App\Http\Controllers\LandingPageController::getCurrentDomains();
  9.  
  10.         if (in_array(request()->getHttpHost(), $lp_domains)) {
  11.             $this->mapLandingPageRoutes();
  12.         } else {
  13.             $this->mapApiRoutes();
  14.             $this->mapWebRoutes();
  15.         }
  16.  
  17.         //
  18.     }