| @@ 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([ |
|
| @@ 50-66 (lines=17) @@ | ||
| 47 | 'setting' => 'app_name', |
|
| 48 | 'prefix' => 'explore', |
|
| 49 | 'as' => 'explore.', |
|
| 50 | ], function ($router) { |
|
| 51 | $router->get('/', [ |
|
| 52 | 'as' => 'index', |
|
| 53 | 'uses' => 'ExploreController@indexAction', |
|
| 54 | ]); |
|
| 55 | $router->get('groups', [ |
|
| 56 | 'as' => 'groups', |
|
| 57 | 'uses' => 'ExploreController@groupsAction', |
|
| 58 | ]); |
|
| 59 | ||
| 60 | $router->get('issue/{issue}', [ |
|
| 61 | 'as' => 'issue', |
|
| 62 | 'uses' => 'ExploreController@showIssue', |
|
| 63 | ]); |
|
| 64 | }); |
|
| 65 | ||
| 66 | // Feed Area |
|
| 67 | $router->group([ |
|
| 68 | 'middleware' => 'app.hasSetting', |
|
| 69 | 'setting' => 'app_name', |
|
| @@ 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', |
|