Update routes

This commit is contained in:
James Brooks
2016-10-19 12:28:54 +01:00
parent e5647022c7
commit a7e8ba3697
21 changed files with 231 additions and 75 deletions
+8 -1
View File
@@ -20,6 +20,13 @@ use Illuminate\Contracts\Routing\Registrar;
*/
class SubscribeRoutes
{
/**
* Defines if these routes are for the browser.
*
* @var bool
*/
public static $browser = true;
/**
* Define the subscribe routes.
*
@@ -30,7 +37,7 @@ class SubscribeRoutes
public function map(Registrar $router)
{
$router->group([
'middleware' => ['web', 'ready', 'localize', 'subscribers'],
'middleware' => ['ready', 'localize', 'subscribers'],
], function (Registrar $router) {
$router->get('subscribe', [
'as' => 'get:subscribe',