Elgg  Version 3.0
routes.php
Go to the documentation of this file.
1 <?php
2 
3 return [
4  'index' => [
5  'path' => '/',
6  'resource' => 'index',
7  'walled' => false,
8  ],
9  'upgrade:init' => [
10  'path' => '/upgrade/init',
11  'resource' => 'upgrade',
12  'walled' => false,
13  'middleware' => [
16  ],
17  ],
18  'upgrade:run' => [
19  'path' => '/upgrade/run',
21  'walled' => false,
22  'middleware' => [
24  ],
25  ],
26  'account:register' => [
27  'path' => '/register',
28  'resource' => 'account/register',
29  'walled' => false,
30  'middleware' => [
32  ],
33  ],
34  'account:login' => [
35  'path' => '/login',
36  'resource' => 'account/login',
37  'walled' => false,
38  'middleware' => [
40  ],
41  ],
42  'account:password:reset' => [
43  'path' => '/forgotpassword',
44  'resource' => 'account/forgotten_password',
45  'walled' => false,
46  'middleware' => [
48  ],
49  ],
50  'account:password:change' => [
51  'path' => '/changepassword',
52  'resource' => 'account/change_password',
53  'walled' => false,
54  'middleware' => [
56  ],
57  ],
58  'ajax' => [
59  'path' => '/ajax/{segments}',
60  'handler' => '_elgg_ajax_page_handler',
61  'requirements' => [
62  'segments' => '.+',
63  ],
64  'middleware' => [
66  ]
67  ],
68  'robots.txt' => [
69  'path' => '/robots.txt',
70  'resource' => 'robots.txt',
71  'walled' => false,
72  ],
73  'favicon.ico' => [
74  'path' => '/favicon.ico',
75  'resource' => 'favicon.ico',
76  'walled' => false,
77  ],
78  'manifest.json' => [
79  'path' => '/manifest.json',
80  'resource' => 'manifest.json',
81  'walled' => false,
82  ],
83  'action:token' => [
84  'path' => '/refresh_token',
86  'walled' => false,
87  'middleware' => [
89  ]
90  ],
91  'admin' => [
92  'path' => '/admin/{segments?}',
93  'handler' => '_elgg_admin_page_handler',
94  'requirements' => [
95  'segments' => '.+',
96  ],
97  'middleware' => [
99  ],
100  ],
101  'admin_plugins_refresh' => [
102  'path' => '/admin_plugins_refresh',
103  'handler' => '_elgg_ajax_plugins_update',
104  'middleware' => [
106  ],
107  ],
108  'admin_plugin_text_file' => [
109  'path' => '/admin_plugin_text_file/{plugin_id}/{filename}',
110  'resource' => 'admin/plugin_text_file',
111  'middleware' => [
113  ],
114  ],
115  'phpinfo' => [
116  'path' => '/phpinfo',
117  'resource' => 'phpinfo',
118  'middleware' => [
120  ],
121  ],
122  'cron' => [
123  'path' => '/cron/{segments}',
124  'handler' => '_elgg_cron_page_handler',
125  'requirements' => [
126  'segments' => '.+',
127  ],
128  'walled' => false,
129  ],
130  'serve-icon' => [
131  'path' => '/serve-icon/{guid}/{size}',
132  'handler' => '_elgg_filestore_serve_icon_handler',
133  'requirements' => [
134  'segments' => '.+',
135  ],
136  'walled' => false,
137  ],
138  'livesearch' => [
139  'path' => '/livesearch/{match_on?}',
140  'resource' => 'livesearch',
141  'requirements' => [
142  'match_on' => '\w+',
143  ],
144  ],
145  'settings:index' => [
146  'path' => '/settings',
147  'resource' => 'settings/account',
148  'middleware' => [
150  ],
151  ],
152  'settings:account' => [
153  'path' => '/settings/user/{username?}',
154  'resource' => 'settings/account',
155  'middleware' => [
157  ],
158  ],
159  'settings:statistics' => [
160  'path' => '/settings/statistics/{username?}',
161  'resource' => 'settings/statistics',
162  'middleware' => [
164  ],
165  ],
166  'settings:tools' => [
167  'path' => '/settings/plugins/{username?}/{plugin_id}',
168  'resource' => 'settings/tools',
169  'middleware' => [
171  ],
172  ],
173  'widgets:add_panel' => [
174  'path' => '/widgets/add_panel',
175  'resource' => 'widgets/add_panel',
176  'middleware' => [
178  ],
179  ],
180  'view:object:comment' => [
181  'path' => '/comment/view/{guid}/{container_guid?}',
182  'resource' => 'comments/view',
183  ],
184  'edit:object:comment' => [
185  'path' => '/comment/edit/{guid}',
186  'resource' => 'comments/edit',
187  'middleware' => [
189  ],
190  ],
191  'view:user' => [
192  'path' => '/user/{guid}',
193  'resource' => 'user/view',
194  ],
195  'edit:user:avatar' => [
196  'path' => '/avatar/edit/{username}',
197  'resource' => 'avatar/edit',
198  'middleware' => [
200  ],
201  ],
202 ];
class
Definition: placeholder.php:21