| @@ 33-47 (lines=15) @@ | ||
| 30 | 'setting' => 'app_name', |
|
| 31 | 'prefix' => 'groups', |
|
| 32 | 'as' => 'groups.', |
|
| 33 | ], function ($router) { |
|
| 34 | $router->get('/', [ |
|
| 35 | 'as' => 'index', |
|
| 36 | 'uses' => 'GroupsController@indexAction', |
|
| 37 | ]); |
|
| 38 | $router->get('new', [ |
|
| 39 | 'as' => 'new', |
|
| 40 | 'uses' => 'GroupsController@newAction', |
|
| 41 | ]); |
|
| 42 | ||
| 43 | $router->post('create', [ |
|
| 44 | 'as' => 'create', |
|
| 45 | 'uses' => 'GroupsController@createAction', |
|
| 46 | ]); |
|
| 47 | }); |
|
| 48 | ||
| 49 | // Project Sub-routes groups.group_show, groups.group_edit |
|
| 50 | $router->group([ |
|
| @@ 34-49 (lines=16) @@ | ||
| 31 | 'setting' => 'app_name', |
|
| 32 | 'prefix' => 'projects', |
|
| 33 | 'as' => 'projects.', |
|
| 34 | ], function ($router) { |
|
| 35 | $router->get('/', [ |
|
| 36 | 'as' => 'index', |
|
| 37 | 'uses' => 'ProjectsController@indexAction', |
|
| 38 | ]); |
|
| 39 | $router->get('new', [ |
|
| 40 | 'as' => 'new', |
|
| 41 | 'uses' => 'ProjectsController@newAction', |
|
| 42 | ]); |
|
| 43 | $router->post('create', [ |
|
| 44 | 'as' => 'create', |
|
| 45 | 'uses' => 'ProjectsController@createAction', |
|
| 46 | ]); |
|
| 47 | }); |
|
| 48 | ||
| 49 | // Project Sub-routes |
|
| 50 | $router->group([ |
|
| 51 | 'middleware' => ['app.hasSetting'], |
|
| 52 | 'setting' => 'app_name', |
|
| @@ 72-88 (lines=17) @@ | ||
| 69 | 'setting' => 'app_name', |
|
| 70 | 'prefix' => 'explore', |
|
| 71 | 'as' => 'explore.', |
|
| 72 | ], function ($router) { |
|
| 73 | $router->get('/', [ |
|
| 74 | 'as' => 'index', |
|
| 75 | 'uses' => 'ExploreController@indexAction', |
|
| 76 | ]); |
|
| 77 | $router->get('groups', [ |
|
| 78 | 'as' => 'groups', |
|
| 79 | 'uses' => 'ExploreController@groupsAction', |
|
| 80 | ]); |
|
| 81 | ||
| 82 | $router->get('issue/{issue}', [ |
|
| 83 | 'as' => 'issue', |
|
| 84 | 'uses' => 'ExploreController@showIssue', |
|
| 85 | ]); |
|
| 86 | }); |
|
| 87 | ||
| 88 | // Feed Area |
|
| 89 | $router->group([ |
|
| 90 | 'middleware' => 'app.hasSetting', |
|
| 91 | 'setting' => 'app_name', |
|