Skip to content

Instantly share code, notes, and snippets.

@madindo
Last active August 9, 2019 08:44
Show Gist options
  • Save madindo/a9138b4a2215207a5f36e279d369f83c to your computer and use it in GitHub Desktop.
Save madindo/a9138b4a2215207a5f36e279d369f83c to your computer and use it in GitHub Desktop.
protected function mapAmpRoutes()
{
Route::group([
'middleware' => 'web',
'namespace' => $this->namespace,
'prefix' => 'amp',
], function ($router) {
require base_path('routes/amp.php');
});
}
public function map()
{
// new amp routes
$this->mapAmpRoutes();
$this->mapWebRoutes();
$this->mapApiRoutes();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment