@@ 40-49 (lines=10) @@ | ||
37 | $router->group([ |
|
38 | 'as' => 'projects.', |
|
39 | 'prefix' => 'projects', |
|
40 | ], function ($router) { |
|
41 | $router->get('/', [ |
|
42 | 'as' => 'index', |
|
43 | 'uses' => 'ProjectsController@indexAction', |
|
44 | ]); |
|
45 | $router->get('starred', [ |
|
46 | 'as' => 'starred', |
|
47 | 'uses' => 'ProjectsController@starredAction', |
|
48 | ]); |
|
49 | }); |
|
50 | ||
51 | //Groups |
|
52 | $router->group([ |
@@ 108-117 (lines=10) @@ | ||
105 | 'middleware' => ['app.hasSetting'], |
|
106 | 'setting' => 'app_name', |
|
107 | 'as' => 'profile.', |
|
108 | ], function ($router) { |
|
109 | $router->get('profile', [ |
|
110 | 'as' => 'index', |
|
111 | 'uses' => 'ProfilesController@indexAction', |
|
112 | ]); |
|
113 | $router->post('profile', [ |
|
114 | 'as' => 'update', |
|
115 | 'uses' => 'ProfilesController@updateAction', |
|
116 | ]); |
|
117 | }); |
|
118 | } |
|
119 | } |
|
120 |