Clean up all route files, alias routes etc.

This commit is contained in:
James Brooks
2015-08-07 14:52:44 +01:00
parent 5858d8063b
commit cefabcef2d
14 changed files with 183 additions and 110 deletions
+9 -1
View File
@@ -13,6 +13,11 @@ namespace CachetHQ\Cachet\Http\Routes;
use Illuminate\Contracts\Routing\Registrar;
/**
* This is the subscriber routes class.
*
* @author James Brooks <james@alt-three.com>
*/
class SubscribeRoutes
{
/**
@@ -22,7 +27,10 @@ class SubscribeRoutes
*/
public function map(Registrar $router)
{
$router->group(['middleware' => 'app.hasSetting', 'setting' => 'app_name'], function ($router) {
$router->group([
'middleware' => 'app.hasSetting',
'setting' => 'app_name',
], function ($router) {
$router->group(['middleware' => 'app.subscribers'], function ($router) {
$router->get('subscribe', [
'as' => 'subscribe-page',