10 'path' =>
'/upgrade/init',
11 'resource' =>
'upgrade',
14 \Elgg\Router\Middleware\UpgradeGatekeeper::class,
15 \Elgg\Router\Middleware\RewriteTest::class,
19 'path' =>
'/upgrade/run',
20 'controller' => \Elgg\Upgrade\UpgradeController::class,
23 \Elgg\Router\Middleware\UpgradeGatekeeper::class,
26 'account:register' => [
27 'path' =>
'/register',
28 'resource' =>
'account/register',
31 \Elgg\Router\Middleware\LoggedOutGatekeeper::class,
32 \Elgg\Router\Middleware\RegistrationAllowedGatekeeper::class,
37 'resource' =>
'account/login',
40 \Elgg\Router\Middleware\LoggedOutGatekeeper::class,
43 'account:password:reset' => [
44 'path' =>
'/forgotpassword',
45 'resource' =>
'account/forgotten_password',
48 \Elgg\Router\Middleware\LoggedOutGatekeeper::class,
51 'account:password:change' => [
52 'path' =>
'/changepassword',
53 'resource' =>
'account/change_password',
56 \Elgg\Router\Middleware\LoggedOutGatekeeper::class,
57 \Elgg\Router\Middleware\SignedRequestGatekeeper::class,
60 'account:email:confirm' => [
61 'path' =>
'/emailconfirm/{guid}',
62 'controller' => \Elgg\Users\EmailChangeController::class,
65 \Elgg\Router\Middleware\SignedRequestGatekeeper::class,
68 'account:validation:pending' => [
69 'path' =>
'/validation_pending',
70 'resource' =>
'account/validation_pending',
73 \Elgg\Router\Middleware\LoggedOutGatekeeper::class,
77 'path' =>
'/ajax/{segments}',
78 'controller' => \Elgg\Ajax\Controller::class,
83 \Elgg\Router\Middleware\AjaxGatekeeper::class,
87 'path' =>
'/robots.txt',
88 'resource' =>
'robots.txt',
92 'path' =>
'/favicon.ico',
93 'resource' =>
'favicon.ico',
97 'path' =>
'/manifest.json',
98 'resource' =>
'manifest.json',
101 'admin:plugin_settings' => [
103 'path' =>
'/admin/plugin_settings/{plugin_id}',
104 'resource' =>
'admin/plugin_settings',
106 \Elgg\Router\Middleware\AdminGatekeeper::class,
109 'admin:online_users_count' => [
111 'path' =>
'/admin/online_users_count',
112 'controller' => \Elgg\Controllers\OnlineUsersCount::class,
114 \Elgg\Router\Middleware\AdminGatekeeper::class,
118 'path' =>
'/admin/{segments?}',
119 'resource' =>
'admin',
124 \Elgg\Router\Middleware\AdminGatekeeper::class,
127 'admin_plugin_text_file' => [
128 'path' =>
'/admin_plugin_text_file/{plugin_id}/{filename}',
129 'resource' =>
'admin/plugin_text_file',
131 \Elgg\Router\Middleware\AdminGatekeeper::class,
135 'path' =>
'/phpinfo',
136 'resource' =>
'phpinfo',
138 \Elgg\Router\Middleware\AdminGatekeeper::class,
142 'path' =>
'/cron/{segments}',
143 'controller' => \Elgg\Controllers\Cron::class,
150 'path' =>
'/serve-icon/{guid}/{size}',
151 'controller' => \Elgg\Controllers\ServeIcon::class,
155 'path' =>
'/livesearch/{match_on?}',
156 'resource' =>
'livesearch',
162 'path' =>
'/security.txt',
163 'controller' => \Elgg\Controllers\SecurityTxt::class,
166 'settings:index' => [
167 'path' =>
'/settings',
168 'resource' =>
'settings/account',
170 \Elgg\Router\Middleware\Gatekeeper::class,
173 'settings:account' => [
174 'path' =>
'/settings/user/{username?}',
175 'resource' =>
'settings/account',
177 \Elgg\Router\Middleware\Gatekeeper::class,
179 'detect_page_owner' =>
true,
181 'settings:notifications' => [
182 'path' =>
'/settings/notifications/{username}',
183 'resource' =>
'settings/notifications',
185 \Elgg\Router\Middleware\UserPageOwnerCanEditGatekeeper::class,
187 'detect_page_owner' =>
true,
189 'settings:notifications:users' => [
190 'path' =>
'/settings/notifications/users/{username}',
191 'resource' =>
'settings/notifications/users',
193 \Elgg\Router\Middleware\UserPageOwnerCanEditGatekeeper::class,
195 'detect_page_owner' =>
true,
197 'settings:statistics' => [
198 'path' =>
'/settings/statistics/{username?}',
199 'resource' =>
'settings/statistics',
201 \Elgg\Router\Middleware\Gatekeeper::class,
203 'detect_page_owner' =>
true,
205 'settings:tools' => [
206 'path' =>
'/settings/plugins/{username}/{plugin_id}',
207 'resource' =>
'settings/tools',
209 \Elgg\Router\Middleware\UserPageOwnerCanEditGatekeeper::class,
211 'detect_page_owner' =>
true,
213 'widgets:add_panel' => [
215 'path' =>
'/widgets/add_panel',
216 'resource' =>
'widgets/add_panel',
218 \Elgg\Router\Middleware\Gatekeeper::class,
221 'view:object:comment' => [
222 'path' =>
'/comment/view/{guid}/{container_guid?}',
223 'controller' => \Elgg\Controllers\CommentEntityRedirector::class,
226 'path' =>
'/user/{guid}',
227 'resource' =>
'user/view',
230 'path' =>
'/user/delete/{guid}',
231 'resource' =>
'user/delete',
233 \Elgg\Router\Middleware\AdminGatekeeper::class,
236 'edit:user:avatar' => [
237 'path' =>
'/avatar/edit/{username}',
238 'resource' =>
'avatar/edit',
240 \Elgg\Router\Middleware\UserPageOwnerCanEditGatekeeper::class,
243 'notifications:mute' => [
244 'path' =>
'notifications/mute/{entity_guid}/{recipient_guid}',
245 'resource' =>
'notifications/mute',
247 'entity_guid' =>
'\d+',
248 'recipient_guid' =>
'\d+',
251 \Elgg\Router\Middleware\SignedRequestGatekeeper::class,
256 'path' =>
'/settings/trash/{username}',
257 'resource' =>
'trash/owner',
259 \Elgg\Router\Middleware\Gatekeeper::class,
260 \Elgg\Router\Middleware\UserPageOwnerCanEditGatekeeper::class,
264 'path' =>
'/trash/group/{guid}',
265 'resource' =>
'trash/group',
267 \Elgg\Router\Middleware\Gatekeeper::class,
268 \Elgg\Router\Middleware\GroupPageOwnerCanEditGatekeeper::class,