Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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