]> git.mxchange.org Git - friendica.git/blob - static/routes.config.php
Test the license check
[friendica.git] / static / routes.config.php
1 <?php
2 /**
3  * @copyright Copyright (C) 2010-2022, the Friendica project
4  *
5  * @license GNU AGPL version 3 or any later version
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Affero General Public License as
9  * published by the Free Software Foundation, either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU Affero General Public License for more details.
16  *
17  * You should have received a copy of the GNU Affero General Public License
18  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19  *
20  * Configuration for the default routes in Friendica
21  *
22  * The syntax is either
23  * - 'route' => [ Module::class , [ HTTPMethod(s) ] ]
24  * - 'group' => [ 'route' => [ Module::class, [ HTTPMethod(s) ] ]
25  *
26  * It's possible to create recursive groups
27  *
28  */
29
30 use Friendica\App\Router as R;
31 use Friendica\Module;
32
33 $profileRoutes = [
34         ''                                         => [Module\Profile\Index::class,    [R::GET]],
35         '/profile'                                 => [Module\Profile\Profile::class,  [R::GET]],
36         '/schedule'                                => [Module\Profile\Schedule::class, [R::GET, R::POST]],
37         '/contacts/common'                         => [Module\Profile\Common::class,   [R::GET]],
38         '/contacts[/{type}]'                       => [Module\Profile\Contacts::class, [R::GET]],
39         '/status[/{category}[/{date1}[/{date2}]]]' => [Module\Profile\Status::class,   [R::GET]],
40         '/media'                                   => [Module\Profile\Media::class,    [R::GET]],
41 ];
42
43 $apiRoutes = [
44         '/account' => [
45                 '/verify_credentials[.{extension:json|xml|rss|atom}]'      => [Module\Api\Twitter\Account\VerifyCredentials::class,  [R::GET         ]],
46                 '/rate_limit_status[.{extension:json|xml|rss|atom}]'       => [Module\Api\Twitter\Account\RateLimitStatus::class,    [R::GET         ]],
47                 '/update_profile[.{extension:json|xml|rss|atom}]'          => [Module\Api\Twitter\Account\UpdateProfile ::class,     [        R::POST]],
48                 '/update_profile_image[.{extension:json|xml|rss|atom}]'    => [Module\Api\Twitter\Account\UpdateProfileImage::class, [        R::POST]],
49         ],
50
51         '/blocks/ids[.{extension:json|xml|rss|atom}]'                  => [Module\Api\Twitter\Blocks\Ids::class,               [R::GET         ]],
52         '/blocks/list[.{extension:json|xml|rss|atom}]'                 => [Module\Api\Twitter\Blocks\Lists::class,             [R::GET         ]],
53         '/conversation/show[.{extension:json|xml|rss|atom}]'           => [Module\Api\GNUSocial\Statusnet\Conversation::class, [R::GET         ]],
54         '/conversation/show/{id:\d+}[.{extension:json|xml|rss|atom}]'  => [Module\Api\GNUSocial\Statusnet\Conversation::class, [R::GET         ]],
55         '/direct_messages' => [
56                 '/all[.{extension:json|xml|rss|atom}]'                     => [Module\Api\Twitter\DirectMessages\All::class,          [R::GET         ]],
57                 '/conversation[.{extension:json|xml|rss|atom}]'            => [Module\Api\Twitter\DirectMessages\Conversation::class, [R::GET         ]],
58                 '/destroy[.{extension:json|xml|rss|atom}]'                 => [Module\Api\Twitter\DirectMessages\Destroy::class,      [        R::POST]],
59                 '/new[.{extension:json|xml|rss|atom}]'                     => [Module\Api\Twitter\DirectMessages\NewDM::class,        [        R::POST]],
60                 '/sent[.{extension:json|xml|rss|atom}]'                    => [Module\Api\Twitter\DirectMessages\Sent::class,         [R::GET         ]],
61         ],
62         '/direct_messages[.{extension:json|xml|rss|atom}]'             => [Module\Api\Twitter\DirectMessages\Inbox::class,     [R::GET, R::POST]],
63
64         '/externalprofile/show[.{extension:json|xml|rss|atom}]'        => [Module\Api\Twitter\Users\Show::class,               [R::GET         ]],
65         '/favorites/create[.{extension:json|xml|rss|atom}]'            => [Module\Api\Twitter\Favorites\Create::class,         [        R::POST]],
66         '/favorites/destroy[.{extension:json|xml|rss|atom}]'           => [Module\Api\Twitter\Favorites\Destroy::class,        [        R::POST]],
67         '/favorites[.{extension:json|xml|rss|atom}]'                   => [Module\Api\Twitter\Favorites::class,                [R::GET         ]],
68         '/followers/ids[.{extension:json|xml|rss|atom}]'               => [Module\Api\Twitter\Followers\Ids::class,            [R::GET         ]],
69         '/followers/list[.{extension:json|xml|rss|atom}]'              => [Module\Api\Twitter\Followers\Lists::class,          [R::GET         ]],
70         '/friends/ids[.{extension:json|xml|rss|atom}]'                 => [Module\Api\Twitter\Friends\Ids::class,              [R::GET         ]],
71         '/friends/list[.{extension:json|xml|rss|atom}]'                => [Module\Api\Twitter\Friends\Lists::class,            [R::GET         ]],
72         '/friendships/destroy[.{extension:json|xml|rss|atom}]'         => [Module\Api\Twitter\Friendships\Destroy::class,      [        R::POST]],
73         '/friendships/incoming[.{extension:json|xml|rss|atom}]'        => [Module\Api\Twitter\Friendships\Incoming::class,     [R::GET         ]],
74         '/friendships/show[.{extension:json|xml|rss|atom}]'            => [Module\Api\Twitter\Friendships\Show::class,         [R::GET         ]],
75
76         '/friendica' => [
77                 '/activity/{verb:attendmaybe|attendno|attendyes|dislike|like|unattendmaybe|unattendno|unattendyes|undislike|unlike}[.{extension:json|xml|rss|atom}]'
78                         => [Module\Api\Friendica\Activity::class, [        R::POST]],
79                 '/notification/seen[.{extension:json|xml|rss|atom}]'       => [Module\Api\Friendica\Notification\Seen::class,      [        R::POST]],
80                 '/notification[.{extension:json|xml|rss|atom}]'            => [Module\Api\Friendica\Notification::class,           [R::GET         ]],
81                 '/notifications[.{extension:json|xml|rss|atom}]'           => [Module\Api\Friendica\Notification::class,           [R::GET         ]],
82                 '/direct_messages_setseen[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\DirectMessages\Setseen::class, [        R::POST]],
83                 '/direct_messages_search[.{extension:json|xml|rss|atom}]'  => [Module\Api\Friendica\DirectMessages\Search ::class, [R::GET         ]],
84                 '/events[.{extension:json|xml|rss|atom}]'                  => [Module\Api\Friendica\Events\Index::class,           [R::GET         ]],
85                 '/group_show[.{extension:json|xml|rss|atom}]'              => [Module\Api\Friendica\Group\Show::class,             [R::GET         ]],
86                 '/group_create[.{extension:json|xml|rss|atom}]'            => [Module\Api\Friendica\Group\Create::class,           [        R::POST]],
87                 '/group_delete[.{extension:json|xml|rss|atom}]'            => [Module\Api\Friendica\Group\Delete::class,           [        R::POST]],
88                 '/group_update[.{extension:json|xml|rss|atom}]'            => [Module\Api\Friendica\Group\Update::class,           [        R::POST]],
89                 '/profile/show[.{extension:json|xml|rss|atom}]'            => [Module\Api\Friendica\Profile\Show::class,           [R::GET         ]],
90                 '/photoalbum/delete[.{extension:json|xml|rss|atom}]'       => [Module\Api\Friendica\Photoalbum\Delete::class,      [        R::POST]],
91                 '/photoalbum/update[.{extension:json|xml|rss|atom}]'       => [Module\Api\Friendica\Photoalbum\Update::class,      [        R::POST]],
92                 '/photos/list[.{extension:json|xml|rss|atom}]'             => [Module\Api\Friendica\Photo\Lists::class,            [R::GET         ]],
93                 '/photo/create[.{extension:json|xml|rss|atom}]'            => [Module\Api\Friendica\Photo\Create::class,           [        R::POST]],
94                 '/photo/delete[.{extension:json|xml|rss|atom}]'            => [Module\Api\Friendica\Photo\Delete::class,           [        R::POST]],
95                 '/photo/update[.{extension:json|xml|rss|atom}]'            => [Module\Api\Friendica\Photo\Update::class,           [        R::POST]],
96                 '/photo[.{extension:json|xml|rss|atom}]'                   => [Module\Api\Friendica\Photo::class,                  [R::GET         ]],
97         ],
98
99         '/gnusocial/config[.{extension:json|xml|rss|atom}]'            => [Module\Api\GNUSocial\GNUSocial\Config::class,  [R::GET         ]],
100         '/gnusocial/version[.{extension:json|xml|rss|atom}]'           => [Module\Api\GNUSocial\GNUSocial\Version::class, [R::GET         ]],
101         '/help/test[.{extension:json|xml|rss|atom}]'                   => [Module\Api\GNUSocial\Help\Test::class,         [R::GET         ]],
102
103         '/lists' => [
104                 '/create[.{extension:json|xml|rss|atom}]'                  => [Module\Api\Twitter\Lists\Create::class,    [        R::POST]],
105                 '/destroy[.{extension:json|xml|rss|atom}]'                 => [Module\Api\Twitter\Lists\Destroy::class,   [        R::POST]],
106                 '/list[.{extension:json|xml|rss|atom}]'                    => [Module\Api\Twitter\Lists\Lists::class,     [R::GET         ]],
107                 '/ownerships[.{extension:json|xml|rss|atom}]'              => [Module\Api\Twitter\Lists\Ownership::class, [R::GET         ]],
108                 '/statuses[.{extension:json|xml|rss|atom}]'                => [Module\Api\Twitter\Lists\Statuses::class,  [R::GET         ]],
109                 '/subscriptions[.{extension:json|xml|rss|atom}]'           => [Module\Api\Friendica\Lists\Lists::class,   [R::GET         ]],
110                 '/update[.{extension:json|xml|rss|atom}]'                  => [Module\Api\Twitter\Lists\Update::class,    [        R::POST]],
111         ],
112
113         '/media/upload[.{extension:json|xml|rss|atom}]'                    => [Module\Api\Twitter\Media\Upload::class,             [        R::POST]],
114         '/media/metadata/create[.{extension:json|xml|rss|atom}]'           => [Module\Api\Twitter\Media\Metadata\Create::class,    [        R::POST]],
115         '/saved_searches/list[.{extension:json|xml|rss|atom}]'             => [Module\Api\Twitter\SavedSearches::class,            [R::GET         ]],
116         '/search/tweets[.{extension:json|xml|rss|atom}]'                   => [Module\Api\Twitter\Search\Tweets::class,            [R::GET         ]],
117         '/search[.{extension:json|xml|rss|atom}]'                          => [Module\Api\Twitter\Search\Tweets::class,            [R::GET         ]],
118         '/statusnet/config[.{extension:json|xml|rss|atom}]'                => [Module\Api\GNUSocial\GNUSocial\Config::class,       [R::GET         ]],
119         '/statusnet/conversation[.{extension:json|xml|rss|atom}]'          => [Module\Api\GNUSocial\Statusnet\Conversation::class, [R::GET         ]],
120         '/statusnet/conversation/{id:\d+}[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\Statusnet\Conversation::class, [R::GET         ]],
121         '/statusnet/version[.{extension:json|xml|rss|atom}]'               => [Module\Api\GNUSocial\GNUSocial\Version::class,      [R::GET         ]],
122
123         '/statuses' => [
124                 '/destroy[.{extension:json|xml|rss|atom}]'                 => [Module\Api\Twitter\Statuses\Destroy::class,               [        R::POST]],
125                 '/destroy/{id:\d+}[.{extension:json|xml|rss|atom}]'        => [Module\Api\Twitter\Statuses\Destroy::class,               [        R::POST]],
126                 '/followers[.{extension:json|xml|rss|atom}]'               => [Module\Api\Twitter\Followers\Lists::class,                [R::GET         ]],
127                 '/friends[.{extension:json|xml|rss|atom}]'                 => [Module\Api\Twitter\Friends\Lists::class,                  [R::GET         ]],
128                 '/friends_timeline[.{extension:json|xml|rss|atom}]'        => [Module\Api\Twitter\Statuses\HomeTimeline::class,          [R::GET         ]],
129                 '/home_timeline[.{extension:json|xml|rss|atom}]'           => [Module\Api\Twitter\Statuses\HomeTimeline::class,          [R::GET         ]],
130                 '/mediap[.{extension:json|xml|rss|atom}]'                  => [Module\Api\Twitter\Statuses\Update::class,                [        R::POST]],
131                 '/mentions[.{extension:json|xml|rss|atom}]'                => [Module\Api\Twitter\Statuses\Mentions::class,              [R::GET         ]],
132                 '/mentions_timeline[.{extension:json|xml|rss|atom}]'       => [Module\Api\Twitter\Statuses\Mentions::class,              [R::GET         ]],
133                 '/networkpublic_timeline[.{extension:json|xml|rss|atom}]'  => [Module\Api\Twitter\Statuses\NetworkPublicTimeline::class, [R::GET         ]],
134                 '/public_timeline[.{extension:json|xml|rss|atom}]'         => [Module\Api\Twitter\Statuses\PublicTimeline::class,        [R::GET         ]],
135                 '/replies[.{extension:json|xml|rss|atom}]'                 => [Module\Api\Twitter\Statuses\Mentions::class,              [R::GET         ]],
136                 '/retweet[.{extension:json|xml|rss|atom}]'                 => [Module\Api\Twitter\Statuses\Retweet::class,               [        R::POST]],
137                 '/retweet/{id:\d+}[.{extension:json|xml|rss|atom}]'        => [Module\Api\Twitter\Statuses\Retweet::class,               [        R::POST]],
138                 '/show[.{extension:json|xml|rss|atom}]'                    => [Module\Api\Twitter\Statuses\Show::class,                  [R::GET         ]],
139                 '/show/{id:\d+}[.{extension:json|xml|rss|atom}]'           => [Module\Api\Twitter\Statuses\Show::class,                  [R::GET         ]],
140                 '/update[.{extension:json|xml|rss|atom}]'                  => [Module\Api\Twitter\Statuses\Update::class,                [        R::POST]],
141                 '/update_with_media[.{extension:json|xml|rss|atom}]'       => [Module\Api\Twitter\Statuses\Update::class,                [        R::POST]],
142                 '/user_timeline[.{extension:json|xml|rss|atom}]'           => [Module\Api\Twitter\Statuses\UserTimeline::class,          [R::GET         ]],
143         ],
144
145         '/users' => [
146                 '/lookup[.{extension:json|xml|rss|atom}]'                  => [Module\Api\Twitter\Users\Lookup::class, [R::GET         ]],
147                 '/search[.{extension:json|xml|rss|atom}]'                  => [Module\Api\Twitter\Users\Search::class, [R::GET         ]],
148                 '/show[.{extension:json|xml|rss|atom}]'                    => [Module\Api\Twitter\Users\Show::class,   [R::GET         ]],
149                 '/show/{id:\d+}[.{extension:json|xml|rss|atom}]'           => [Module\Api\Twitter\Users\Show::class,   [R::GET         ]],
150         ],
151 ];
152
153 return [
154         '/' => [Module\Home::class, [R::GET]],
155
156         '/.well-known' => [
157                 '/host-meta'      => [Module\WellKnown\HostMeta::class,     [R::GET]],
158                 '/nodeinfo'       => [Module\WellKnown\NodeInfo::class,     [R::GET]],
159                 '/security.txt'   => [Module\WellKnown\SecurityTxt::class,  [R::GET]],
160                 '/webfinger'      => [Module\Xrd::class,                    [R::GET]],
161                 '/x-nodeinfo2'    => [Module\NodeInfo210::class,            [R::GET]],
162                 '/x-social-relay' => [Module\WellKnown\XSocialRelay::class, [R::GET]],
163         ],
164
165         '/2fa' => [
166                 '[/]'       => [Module\Security\TwoFactor\Verify::class,   [R::GET, R::POST]],
167                 '/recovery' => [Module\Security\TwoFactor\Recovery::class, [R::GET, R::POST]],
168         ],
169
170         '/api' => [
171                 ''     => $apiRoutes,
172                 '/1.1' => $apiRoutes,
173                 '/v1' => [
174                         '/accounts'                          => [Module\Api\Mastodon\Unimplemented::class,            [        R::POST]], // not supported
175                         '/accounts/{id:\d+}'                 => [Module\Api\Mastodon\Accounts::class,                 [R::GET         ]],
176                         '/accounts/{id:\d+}/statuses'        => [Module\Api\Mastodon\Accounts\Statuses::class,        [R::GET         ]],
177                         '/accounts/{id:\d+}/featured_tags'   => [Module\Api\Mastodon\Accounts\FeaturedTags::class,    [R::GET         ]], // Dummy, not supported
178                         '/accounts/{id:\d+}/followers'       => [Module\Api\Mastodon\Accounts\Followers::class,       [R::GET         ]],
179                         '/accounts/{id:\d+}/following'       => [Module\Api\Mastodon\Accounts\Following::class,       [R::GET         ]],
180                         '/accounts/{id:\d+}/lists'           => [Module\Api\Mastodon\Accounts\Lists::class,           [R::GET         ]],
181                         '/accounts/{id:\d+}/identity_proofs' => [Module\Api\Mastodon\Accounts\IdentityProofs::class,  [R::GET         ]], // Dummy, not supported
182                         '/accounts/{id:\d+}/follow'          => [Module\Api\Mastodon\Accounts\Follow::class,          [        R::POST]],
183                         '/accounts/{id:\d+}/unfollow'        => [Module\Api\Mastodon\Accounts\Unfollow::class,        [        R::POST]],
184                         '/accounts/{id:\d+}/block'           => [Module\Api\Mastodon\Accounts\Block::class,           [        R::POST]],
185                         '/accounts/{id:\d+}/unblock'         => [Module\Api\Mastodon\Accounts\Unblock::class,         [        R::POST]],
186                         '/accounts/{id:\d+}/mute'            => [Module\Api\Mastodon\Accounts\Mute::class,            [        R::POST]],
187                         '/accounts/{id:\d+}/unmute'          => [Module\Api\Mastodon\Accounts\Unmute::class,          [        R::POST]],
188                         '/accounts/{id:\d+}/pin'             => [Module\Api\Mastodon\Unimplemented::class,            [        R::POST]], // not supported
189                         '/accounts/{id:\d+}/unpin'           => [Module\Api\Mastodon\Unimplemented::class,            [        R::POST]], // not supported
190                         '/accounts/{id:\d+}/note'            => [Module\Api\Mastodon\Accounts\Note::class,            [        R::POST]],
191                         '/accounts/{id:\d+}/remove_from_followers' => [Module\Api\Mastodon\Unimplemented::class,      [        R::POST]], // not supported
192                         '/accounts/familiar_followers'       => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not supported
193                         '/accounts/lookup'                   => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not supported
194                         '/accounts/relationships'            => [Module\Api\Mastodon\Accounts\Relationships::class,   [R::GET         ]],
195                         '/accounts/search'                   => [Module\Api\Mastodon\Accounts\Search::class,          [R::GET         ]],
196                         '/accounts/update_credentials'       => [Module\Api\Mastodon\Accounts\UpdateCredentials::class, [R::PATCH     ]],
197                         '/accounts/verify_credentials'       => [Module\Api\Mastodon\Accounts\VerifyCredentials::class, [R::GET       ]],
198                         '/accounts/{name}'                   => [Module\Api\Mastodon\Accounts::class,                 [R::GET         ]],
199                         '/admin/accounts/{id:\d+}'           => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not supported
200                         '/admin/accounts/{id:\d+}/{action}'  => [Module\Api\Mastodon\Unimplemented::class,            [        R::POST]], // not supported
201                         '/admin/dimensions'                  => [Module\Api\Mastodon\Unimplemented::class,            [        R::POST]], // not supported
202                         '/admin/measures'                    => [Module\Api\Mastodon\Unimplemented::class,            [        R::POST]], // not supported
203                         '/admin/retention'                   => [Module\Api\Mastodon\Unimplemented::class,            [        R::POST]], // not supported
204                         '/admin/trends/links'                => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not supported
205                         '/admin/trends/statuses'             => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not supported
206                         '/admin/trends/tags'                 => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not supported
207                         '/admin/reports'                     => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not supported
208                         '/admin/reports/{id:\d+}'            => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not supported
209                         '/admin/reports/{id:\d+}/{action}'   => [Module\Api\Mastodon\Unimplemented::class,            [        R::POST]], // not supported
210                         '/announcements'                     => [Module\Api\Mastodon\Announcements::class,            [R::GET         ]], // Dummy, not supported
211                         '/announcements/{id:\d+}/dismiss'    => [Module\Api\Mastodon\Unimplemented::class,            [        R::POST]], // not supported
212                         '/announcements/{id:\d+}/reactions/{name}' => [Module\Api\Mastodon\Unimplemented::class,      [R::PUT, R::DELETE]], // not supported
213                         '/apps'                              => [Module\Api\Mastodon\Apps::class,                     [        R::POST]],
214                         '/apps/verify_credentials'           => [Module\Api\Mastodon\Apps\VerifyCredentials::class,   [R::GET         ]],
215                         '/blocks'                            => [Module\Api\Mastodon\Blocks::class,                   [R::GET         ]],
216                         '/bookmarks'                         => [Module\Api\Mastodon\Bookmarks::class,                [R::GET         ]],
217                         '/conversations'                     => [Module\Api\Mastodon\Conversations::class,            [R::GET         ]],
218                         '/conversations/{id:\d+}'            => [Module\Api\Mastodon\Conversations::class,            [R::DELETE      ]],
219                         '/conversations/{id:\d+}/read'       => [Module\Api\Mastodon\Conversations\Read::class,       [R::POST        ]],
220                         '/custom_emojis'                     => [Module\Api\Mastodon\CustomEmojis::class,             [R::GET         ]],
221                         '/domain_blocks'                     => [Module\Api\Mastodon\Unimplemented::class,            [R::GET, R::POST, R::DELETE]], // not supported
222                         '/directory'                         => [Module\Api\Mastodon\Directory::class,                [R::GET         ]],
223                         '/emails/confirmations'              => [Module\Api\Mastodon\Unimplemented::class,            [R::POST        ]], // not supported
224                         '/endorsements'                      => [Module\Api\Mastodon\Endorsements::class,             [R::GET         ]], // Dummy, not supported
225                         '/favourites'                        => [Module\Api\Mastodon\Favourited::class,               [R::GET         ]],
226                         '/featured_tags'                     => [Module\Api\Mastodon\Unimplemented::class,            [R::GET, R::POST]], // not supported
227                         '/featured_tags/{id:\d+}'            => [Module\Api\Mastodon\Unimplemented::class,            [R::DELETE      ]], // not supported
228                         '/featured_tags/suggestions'         => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not supported
229                         '/filters'                           => [Module\Api\Mastodon\Filters::class,                  [R::GET         ]], // Dummy, not supported
230                         '/filters/{id:\d+}'                  => [Module\Api\Mastodon\Unimplemented::class,            [R::GET, R::POST, R::PUT, R::DELETE]], // not supported
231                         '/follow_requests'                   => [Module\Api\Mastodon\FollowRequests::class,           [R::GET         ]],
232                         '/follow_requests/{id:\d+}/{action}' => [Module\Api\Mastodon\FollowRequests::class,           [        R::POST]],
233                         '/instance'                          => [Module\Api\Mastodon\Instance::class,                 [R::GET         ]],
234                         '/instance/activity'                 => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // @todo
235                         '/instance/peers'                    => [Module\Api\Mastodon\Instance\Peers::class,           [R::GET         ]],
236                         '/instance/rules'                    => [Module\Api\Mastodon\Instance\Rules::class,           [R::GET         ]], // not supported
237                         '/lists'                             => [Module\Api\Mastodon\Lists::class,                    [R::GET, R::POST]],
238                         '/lists/{id:\d+}'                    => [Module\Api\Mastodon\Lists::class,                    [R::GET, R::PUT, R::DELETE]],
239                         '/lists/{id:\d+}/accounts'           => [Module\Api\Mastodon\Lists\Accounts::class,           [R::GET, R::POST, R::DELETE]],
240                         '/markers'                           => [Module\Api\Mastodon\Markers::class,                  [R::GET, R::POST]], // Dummy, not supported
241                         '/media/{id:\d+}'                    => [Module\Api\Mastodon\Media::class,                    [R::GET, R::PUT ]],
242                         '/mutes'                             => [Module\Api\Mastodon\Mutes::class,                    [R::GET         ]],
243                         '/notifications'                     => [Module\Api\Mastodon\Notifications::class,            [R::GET         ]],
244                         '/notifications/{id:\d+}'            => [Module\Api\Mastodon\Notifications::class,            [R::GET         ]],
245                         '/notifications/clear'               => [Module\Api\Mastodon\Notifications\Clear::class,      [        R::POST]],
246                         '/notifications/{id:\d+}/dismiss'    => [Module\Api\Mastodon\Notifications\Dismiss::class,    [        R::POST]],
247                         '/polls/{id:\d+}'                    => [Module\Api\Mastodon\Polls::class,                    [R::GET         ]], // not supported
248                         '/polls/{id:\d+}/votes'              => [Module\Api\Mastodon\Unimplemented::class,            [        R::POST]], // not supported
249                         '/preferences'                       => [Module\Api\Mastodon\Preferences::class,              [R::GET         ]],
250                         '/push/subscription'                 => [Module\Api\Mastodon\PushSubscription::class,         [R::GET, R::POST, R::PUT, R::DELETE]],
251                         '/reports'                           => [Module\Api\Mastodon\Unimplemented::class,            [        R::POST]], // not supported
252                         '/scheduled_statuses'                => [Module\Api\Mastodon\ScheduledStatuses::class,        [R::GET         ]],
253                         '/scheduled_statuses/{id:\d+}'       => [Module\Api\Mastodon\ScheduledStatuses::class,        [R::GET, R::PUT, R::DELETE]],
254                         '/statuses'                          => [Module\Api\Mastodon\Statuses::class,                 [        R::POST]],
255                         '/statuses/{id:\d+}'                 => [Module\Api\Mastodon\Statuses::class,                 [R::GET, R::PUT, R::DELETE]],
256                         '/statuses/{id:\d+}/card'            => [Module\Api\Mastodon\Statuses\Card::class,            [R::GET         ]],
257                         '/statuses/{id:\d+}/context'         => [Module\Api\Mastodon\Statuses\Context::class,         [R::GET         ]],
258                         '/statuses/{id:\d+}/reblogged_by'    => [Module\Api\Mastodon\Statuses\RebloggedBy::class,     [R::GET         ]],
259                         '/statuses/{id:\d+}/favourited_by'   => [Module\Api\Mastodon\Statuses\FavouritedBy::class,    [R::GET         ]],
260                         '/statuses/{id:\d+}/favourite'       => [Module\Api\Mastodon\Statuses\Favourite::class,       [        R::POST]],
261                         '/statuses/{id:\d+}/unfavourite'     => [Module\Api\Mastodon\Statuses\Unfavourite::class,     [        R::POST]],
262                         '/statuses/{id:\d+}/reblog'          => [Module\Api\Mastodon\Statuses\Reblog::class,          [        R::POST]],
263                         '/statuses/{id:\d+}/unreblog'        => [Module\Api\Mastodon\Statuses\Unreblog::class,        [        R::POST]],
264                         '/statuses/{id:\d+}/bookmark'        => [Module\Api\Mastodon\Statuses\Bookmark::class,        [        R::POST]],
265                         '/statuses/{id:\d+}/unbookmark'      => [Module\Api\Mastodon\Statuses\Unbookmark::class,      [        R::POST]],
266                         '/statuses/{id:\d+}/mute'            => [Module\Api\Mastodon\Statuses\Mute::class,            [        R::POST]],
267                         '/statuses/{id:\d+}/unmute'          => [Module\Api\Mastodon\Statuses\Unmute::class,          [        R::POST]],
268                         '/statuses/{id:\d+}/pin'             => [Module\Api\Mastodon\Statuses\Pin::class,             [        R::POST]],
269                         '/statuses/{id:\d+}/unpin'           => [Module\Api\Mastodon\Statuses\Unpin::class,           [        R::POST]],
270                         '/statuses/{id:\d+}/history'         => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
271                         '/statuses/{id:\d+}/source'          => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
272                         '/streaming/direct'                  => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
273                         '/streaming/hashtag'                 => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
274                         '/streaming/hashtag/local'           => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
275                         '/streaming/health'                  => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
276                         '/streaming/list'                    => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
277                         '/streaming/public'                  => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
278                         '/streaming/public/local'            => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
279                         '/streaming/public/remote'           => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
280                         '/streaming/user'                    => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
281                         '/streaming/user/notification'       => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
282                         '/suggestions/{id:\d+}'              => [Module\Api\Mastodon\Unimplemented::class,            [R::DELETE      ]], // not implemented
283                         '/timelines/direct'                  => [Module\Api\Mastodon\Timelines\Direct::class,         [R::GET         ]],
284                         '/timelines/home'                    => [Module\Api\Mastodon\Timelines\Home::class,           [R::GET         ]],
285                         '/timelines/list/{id:\d+}'           => [Module\Api\Mastodon\Timelines\ListTimeline::class,   [R::GET         ]],
286                         '/timelines/public'                  => [Module\Api\Mastodon\Timelines\PublicTimeline::class, [R::GET         ]],
287                         '/timelines/tag/{hashtag}'           => [Module\Api\Mastodon\Timelines\Tag::class,            [R::GET         ]],
288                         '/trends'                            => [Module\Api\Mastodon\Trends::class,                   [R::GET         ]],
289                         '/trends/links'                      => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
290                         '/trends/statuses'                   => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
291                         '/trends/tags'                       => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
292                 ],
293                 '/v{version:\d+}' => [
294                         '/admin/accounts'                    => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not supported
295                         '/media'                             => [Module\Api\Mastodon\Media::class,                    [        R::POST]],
296                         '/search'                            => [Module\Api\Mastodon\Search::class,                   [R::GET         ]],
297                         '/suggestions'                       => [Module\Api\Mastodon\Suggestions::class,              [R::GET         ]],
298                 ],
299                 '/meta'                                  => [Module\Api\Mastodon\Unimplemented::class, [R::POST        ]], // not supported
300                 '/oembed'                                => [Module\Api\Mastodon\Unimplemented::class, [R::GET         ]],
301                 '/proofs'                                => [Module\Api\Mastodon\Proofs::class,        [R::GET         ]], // Dummy, not supported
302         ],
303
304         '/admin'               => [
305                 '[/]' => [Module\Admin\Summary::class, [R::GET]],
306
307                 '/addons'         => [Module\Admin\Addons\Index::class,   [R::GET, R::POST]],
308                 '/addons/{addon}' => [Module\Admin\Addons\Details::class, [R::GET, R::POST]],
309
310
311                 '/blocklist/contact'    => [Module\Admin\Blocklist\Contact::class,      [R::GET, R::POST]],
312                 '/blocklist/server'     => [Module\Admin\Blocklist\Server\Index::class, [R::GET, R::POST]],
313                 '/blocklist/server/add' => [Module\Admin\Blocklist\Server\Add::class,   [R::GET, R::POST]],
314
315                 '/dbsync[/{action}[/{update:\d+}]]' => [Module\Admin\DBSync::class, [R::GET]],
316
317                 '/features'   => [Module\Admin\Features::class,   [R::GET, R::POST]],
318                 '/federation' => [Module\Admin\Federation::class, [R::GET]],
319
320                 '/item/delete'          => [Module\Admin\Item\Delete::class, [R::GET, R::POST]],
321                 '/item/source[/{guid}]' => [Module\Admin\Item\Source::class, [R::GET, R::POST]],
322
323                 '/logs/view' => [Module\Admin\Logs\View::class,     [R::GET]],
324                 '/logs'      => [Module\Admin\Logs\Settings::class, [R::GET, R::POST]],
325
326                 '/phpinfo' => [Module\Admin\PhpInfo::class, [R::GET]],
327
328                 '/queue[/{status}]' => [Module\Admin\Queue::class, [R::GET]],
329
330                 '/site' => [Module\Admin\Site::class, [R::GET, R::POST]],
331
332                 '/storage'        => [Module\Admin\Storage::class, [R::GET, R::POST]],
333                 '/storage/{name}' => [Module\Admin\Storage::class, [        R::POST]],
334
335                 '/themes'               => [Module\Admin\Themes\Index::class,   [R::GET, R::POST]],
336                 '/themes/{theme}'       => [Module\Admin\Themes\Details::class, [R::GET, R::POST]],
337                 '/themes/{theme}/embed' => [Module\Admin\Themes\Embed::class,   [R::GET, R::POST]],
338
339                 '/tos' => [Module\Admin\Tos::class, [R::GET, R::POST]],
340
341                 '/users[/{action}/{uid}]'         => [Module\Admin\Users\Index::class,   [R::GET, R::POST]],
342                 '/users/active[/{action}/{uid}]'  => [Module\Admin\Users\Active::class,  [R::GET, R::POST]],
343                 '/users/pending[/{action}/{uid}]' => [Module\Admin\Users\Pending::class, [R::GET, R::POST]],
344                 '/users/blocked[/{action}/{uid}]' => [Module\Admin\Users\Blocked::class, [R::GET, R::POST]],
345                 '/users/deleted'                  => [Module\Admin\Users\Deleted::class, [R::GET         ]],
346                 '/users/create'                   => [Module\Admin\Users\Create::class,  [R::GET, R::POST]],
347         ],
348         '/amcd'                => [Module\AccountManagementControlDocument::class, [R::GET]],
349         '/acctlink'            => [Module\Acctlink::class,     [R::GET]],
350         '/apps'                => [Module\Apps::class,         [R::GET]],
351         '/attach/{item:\d+}'   => [Module\Attach::class,       [R::GET]],
352         '/babel'               => [Module\Debug\Babel::class,  [R::GET, R::POST]],
353         '/debug/ap'            => [Module\Debug\ActivityPubConversion::class,  [R::GET, R::POST]],
354         '/bookmarklet'         => [Module\Bookmarklet::class,  [R::GET]],
355
356         '/community[/{content}]' => [Module\Conversation\Community::class, [R::GET]],
357
358         '/compose[/{type}]'    => [Module\Item\Compose::class, [R::GET, R::POST]],
359
360         '/contact'   => [
361                 '[/]'                         => [Module\Contact::class,           [R::GET]],
362                 '/{id:\d+}[/]'                => [Module\Contact\Profile::class,   [R::GET, R::POST]],
363                 '/{id:\d+}/{action:block|ignore|update|updateprofile}'
364                                               => [Module\Contact\Profile::class,   [R::GET]],
365                 '/{id:\d+}/advanced'          => [Module\Contact\Advanced::class,  [R::GET, R::POST]],
366                 '/{id:\d+}/conversations'     => [Module\Contact\Conversations::class, [R::GET]],
367                 '/{id:\d+}/contacts[/{type}]' => [Module\Contact\Contacts::class,  [R::GET]],
368                 '/{id:\d+}/media'             => [Module\Contact\Media::class,     [R::GET]],
369                 '/{id:\d+}/poke'              => [Module\Contact\Poke::class,      [R::GET, R::POST]],
370                 '/{id:\d+}/posts'             => [Module\Contact\Posts::class,     [R::GET]],
371                 '/{id:\d+}/revoke'            => [Module\Contact\Revoke::class,    [R::GET, R::POST]],
372                 '/archived'                   => [Module\Contact::class,           [R::GET]],
373                 '/batch'                      => [Module\Contact::class,           [R::GET, R::POST]],
374                 '/pending'                    => [Module\Contact::class,           [R::GET]],
375                 '/blocked'                    => [Module\Contact::class,           [R::GET]],
376                 '/hidden'                     => [Module\Contact::class,           [R::GET]],
377                 '/ignored'                    => [Module\Contact::class,           [R::GET]],
378                 '/hovercard'                  => [Module\Contact\Hovercard::class, [R::GET]],
379         ],
380
381         '/credits'                  => [Module\Credits::class,          [R::GET]],
382         '/delegation'               => [Module\Delegation::class,       [R::GET, R::POST]],
383         '/dfrn_notify[/{nickname}]' => [Module\DFRN\Notify::class,      [R::POST]],
384         '/dfrn_poll/{nickname}'     => [Module\DFRN\Poll::class,        [R::GET]],
385         '/dirfind'                  => [Module\Search\Directory::class, [R::GET]],
386         '/directory'                => [Module\Directory::class,        [R::GET]],
387
388         '/events/json'              => [Module\Events\Json::class,      [R::GET]],
389
390         '/featured/{nickname}'      => [Module\ActivityPub\Featured::class, [R::GET]],
391
392         '/feed'     => [
393                 '/{nickname}'          => [Module\Feed::class, [R::GET]],
394                 '/{nickname}/posts'    => [Module\Feed::class, [R::GET]],
395                 '/{nickname}/comments' => [Module\Feed::class, [R::GET]],
396                 '/{nickname}/replies'  => [Module\Feed::class, [R::GET]],
397                 '/{nickname}/activity' => [Module\Feed::class, [R::GET]],
398         ],
399         '/feedtest' => [Module\Debug\Feed::class, [R::GET]],
400
401         '/fetch'             => [
402                 '/post/{guid}'           => [Module\Diaspora\Fetch::class, [R::GET]],
403                 '/status_message/{guid}' => [Module\Diaspora\Fetch::class, [R::GET]],
404                 '/reshare/{guid}'        => [Module\Diaspora\Fetch::class, [R::GET]],
405         ],
406         '/filed'                => [Module\Search\Filed::class,          [R::GET]],
407         '/filer[/{id:\d+}]'     => [Module\Filer\SaveTag::class,         [R::GET]],
408         '/filerm/{id:\d+}'      => [Module\Filer\RemoveTag::class,       [R::GET]],
409         '/follow_confirm'       => [Module\FollowConfirm::class,         [R::GET, R::POST]],
410         '/followers/{nickname}' => [Module\ActivityPub\Followers::class, [R::GET]],
411         '/following/{nickname}' => [Module\ActivityPub\Following::class, [R::GET]],
412         '/friendica[/json]'     => [Module\Friendica::class,             [R::GET]],
413         '/friendica/inbox'      => [Module\ActivityPub\Inbox::class,     [R::GET, R::POST]],
414
415         '/fsuggest/{contact:\d+}' => [Module\FriendSuggest::class,  [R::GET, R::POST]],
416
417         '/group'              => [
418                 '[/]'                        => [Module\Group::class, [R::GET, R::POST]],
419                 '/{group:\d+}'               => [Module\Group::class, [R::GET, R::POST]],
420                 '/none'                      => [Module\Group::class, [R::GET, R::POST]],
421                 '/new'                       => [Module\Group::class, [R::GET, R::POST]],
422                 '/drop/{group:\d+}'          => [Module\Group::class, [R::GET, R::POST]],
423                 '/{group:\d+}/{contact:\d+}' => [Module\Group::class, [R::GET, R::POST]],
424                 '/{group:\d+}/{command:add|remove}/{contact:\d+}'    => [Module\Group::class, [R::GET, R::POST]],
425         ],
426         '/hashtag'                    => [Module\Hashtag::class,           [R::GET]],
427         '/help[/{doc:.+}]'            => [Module\Help::class,              [R::GET]],
428         '/home'                       => [Module\Home::class,              [R::GET]],
429         '/hcard/{profile}[/{action}]' => [Module\HCard::class,             [R::GET]],
430         '/inbox[/{nickname}]'         => [Module\ActivityPub\Inbox::class, [R::GET, R::POST]],
431         '/invite'                     => [Module\Invite::class,            [R::GET, R::POST]],
432
433         '/install'         => [
434                 '[/]'                    => [Module\Install::class, [R::GET, R::POST]],
435                 '/testrewrite'           => [Module\Install::class, [R::GET]],
436         ],
437
438         '/item/{id:\d+}'            => [
439                 '/activity/{verb}' => [Module\Item\Activity::class,    [        R::POST]],
440                 '/follow'          => [Module\Item\Follow::class,      [        R::POST]],
441                 '/ignore'          => [Module\Item\Ignore::class,      [        R::POST]],
442                 '/pin'             => [Module\Item\Pin::class,         [        R::POST]],
443                 '/star'            => [Module\Item\Star::class,        [        R::POST]],
444         ],
445
446         '/localtime'          => [Module\Debug\Localtime::class, [R::GET, R::POST]],
447         '/login'              => [Module\Security\Login::class,  [R::GET, R::POST]],
448         '/logout'             => [Module\Security\Logout::class, [R::GET, R::POST]],
449         '/magic'              => [Module\Magic::class,           [R::GET]],
450         '/manifest'           => [Module\Manifest::class,        [R::GET]],
451         '/friendica.webmanifest'  => [Module\Manifest::class,    [R::GET]],
452         '/modexp/{nick}'      => [Module\PublicRSAKey::class,    [R::GET]],
453         '/newmember'          => [Module\Welcome::class,         [R::GET]],
454         '/nodeinfo/1.0'       => [Module\NodeInfo110::class,     [R::GET]],
455         '/nodeinfo/2.0'       => [Module\NodeInfo120::class,     [R::GET]],
456         '/nogroup'            => [Module\Group::class,           [R::GET]],
457
458         '/noscrape' => [
459                 '/{nick}'         => [Module\NoScrape::class, [R::GET]],
460                 '/{profile}/view' => [Module\NoScrape::class, [R::GET]],
461         ],
462
463         '/notifications' => [
464                 '/network[/json]'    => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
465                 '/system[/json]'     => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
466                 '/personal[/json]'   => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
467                 '/home[/json]'       => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
468                 '/intros[/json]'     => [Module\Notifications\Introductions::class, [R::GET, R::POST]],
469                 '/intros/all[/json]' => [Module\Notifications\Introductions::class, [R::GET, R::POST]],
470                 '/intros/{contact:\d+}[/json]' => [Module\Notifications\Introductions::class, [R::GET, R::POST]],
471         ],
472
473         '/notification'         => [
474                 '[/]'       => [Module\Notifications\Notification::class, [R::GET]],
475                 '/mark/all' => [Module\Notifications\Notification::class, [R::GET]],
476                 '/{id:\d+}' => [Module\Notifications\Notification::class, [R::GET, R::POST]],
477         ],
478
479         '/notify/{notify_id:\d+}' => [Module\Notifications\Notification::class, [R::GET]],
480
481         '/oauth' => [
482                 '/acknowledge' => [Module\OAuth\Acknowledge::class, [R::GET, R::POST]],
483                 '/authorize'   => [Module\OAuth\Authorize::class,   [R::GET]],
484                 '/revoke'      => [Module\OAuth\Revoke::class,      [R::POST]],
485                 '/token'       => [Module\OAuth\Token::class,       [R::POST]],
486         ],
487
488         '/objects/{guid}[/{activity}]' => [Module\ActivityPub\Objects::class, [R::GET]],
489
490         '/oembed'         => [
491                 '/b2h'    => [Module\Oembed::class, [R::GET]],
492                 '/h2b'    => [Module\Oembed::class, [R::GET]],
493                 '/{hash}' => [Module\Oembed::class, [R::GET]],
494         ],
495         '/outbox/{nickname}' => [Module\ActivityPub\Outbox::class, [R::GET]],
496         '/owa'               => [Module\Owa::class,                [R::GET]],
497         '/openid'            => [Module\Security\OpenID::class,    [R::GET]],
498         '/opensearch'        => [Module\OpenSearch::class,         [R::GET]],
499
500         '/parseurl'                           => [Module\ParseUrl::class,          [R::GET]],
501         '/permission/tooltip/{type}/{id:\d+}' => [Module\PermissionTooltip::class, [R::GET]],
502
503         '/photo' => [
504                 '/{name}'                                                  => [Module\Photo::class, [R::GET]],
505                 '/{type}/{id:\d+}'                                         => [Module\Photo::class, [R::GET]],
506                 '/{type:contact|header}/{guid}'                            => [Module\Photo::class, [R::GET]],
507                 // User Id Fallback, to remove after version 2021.12
508                 '/{type}/{uid_ext:\d+\..*}'                                => [Module\Photo::class, [R::GET]],
509                 '/{type}/{nickname_ext}'                                   => [Module\Photo::class, [R::GET]],
510                 // Contact Id Fallback, to remove after version 2021.12
511                 '/{type:contact|header}/{customsize:\d+}/{contact_id:\d+}' => [Module\Photo::class, [R::GET]],
512                 '/{type:contact|header}/{customsize:\d+}/{guid}'           => [Module\Photo::class, [R::GET]],
513                 '/{type}/{customsize:\d+}/{id:\d+}'                        => [Module\Photo::class, [R::GET]],
514                 // User Id Fallback, to remove after version 2021.12
515                 '/{type}/{customsize:\d+}/{uid_ext:\d+\..*}'               => [Module\Photo::class, [R::GET]],
516                 '/{type}/{customsize:\d+}/{nickname_ext}'                  => [Module\Photo::class, [R::GET]],
517         ],
518
519         '/ping'              => [Module\Notifications\Ping::class, [R::GET]],
520         '/pretheme'          => [Module\ThemeDetails::class, [R::GET]],
521         '/probe'             => [Module\Debug\Probe::class,  [R::GET]],
522
523         '/profile/{nickname}' => $profileRoutes,
524         '/u/{nickname}'       => $profileRoutes,
525         '/~{nickname}'        => $profileRoutes,
526
527         '/proxy' => [
528                 '[/]'                  => [Module\Proxy::class, [R::GET]],
529                 '/{url}'               => [Module\Proxy::class, [R::GET]],
530                 '/{sub1}/{url}'        => [Module\Proxy::class, [R::GET]],
531                 '/{sub1}/{sub2}/{url}' => [Module\Proxy::class, [R::GET]],
532         ],
533
534         '/search' => [
535                 '[/]'                  => [Module\Search\Index::class, [R::GET]],
536                 '/acl'                 => [Module\Search\Acl::class,   [R::GET, R::POST]],
537                 '/saved/add'           => [Module\Search\Saved::class, [R::GET]],
538                 '/saved/remove'        => [Module\Search\Saved::class, [R::GET]],
539         ],
540
541         '/receive' => [
542                 '/{type:public}'       => [Module\Diaspora\Receive::class, [        R::POST]],
543                 '/{type:users}/{guid}' => [Module\Diaspora\Receive::class, [        R::POST]],
544         ],
545
546         '/settings' => [
547                 '[/]'         => [Module\Settings\Account::class,               [R::GET, R::POST]],
548                 '/account' => [
549                         '[/]'     => [Module\Settings\Account::class,               [R::GET, R::POST]],
550                         '/{open}' => [Module\Settings\Account::class,               [R::GET, R::POST]],
551                 ],
552                 '/2fa' => [
553                         '[/]'           => [Module\Settings\TwoFactor\Index::class,       [R::GET, R::POST]],
554                         '/recovery'     => [Module\Settings\TwoFactor\Recovery::class,    [R::GET, R::POST]],
555                         '/app_specific' => [Module\Settings\TwoFactor\AppSpecific::class, [R::GET, R::POST]],
556                         '/verify'       => [Module\Settings\TwoFactor\Verify::class,      [R::GET, R::POST]],
557                         '/trusted'      => [Module\Settings\TwoFactor\Trusted::class, [R::GET, R::POST]],
558                 ],
559                 '/delegation[/{action}/{user_id}]' => [Module\Settings\Delegation::class,       [R::GET, R::POST]],
560                 '/display'                 => [Module\Settings\Display::class,             [R::GET, R::POST]],
561                 '/profile' => [
562                         '[/]'                  => [Module\Settings\Profile\Index::class,       [R::GET, R::POST]],
563                         '/photo[/new]'         => [Module\Settings\Profile\Photo\Index::class, [R::GET, R::POST]],
564                         '/photo/crop/{guid}'   => [Module\Settings\Profile\Photo\Crop::class,  [R::GET, R::POST]],
565                 ],
566                 '/userexport[/{action}]' => [Module\Settings\UserExport::class,             [R::GET, R::POST]],
567         ],
568
569         '/network' => [
570                 '[/]'                         => [Module\Conversation\Network::class, [R::GET]],
571                 '/archive/{from:\d\d\d\d-\d\d-\d\d}[/{to:\d\d\d\d-\d\d-\d\d}]' => [Module\Conversation\Network::class, [R::GET]],
572                 '/forum/{contact_id:\d+}'     => [Module\Conversation\Network::class, [R::GET]],
573                 '/group/{group_id:\d+}'       => [Module\Conversation\Network::class, [R::GET]],
574         ],
575
576         '/randprof'                      => [Module\RandomProfile::class,         [R::GET]],
577         '/register'                      => [Module\Register::class,              [R::GET, R::POST]],
578         '/remote_follow/{profile}'       => [Module\RemoteFollow::class,          [R::GET, R::POST]],
579         '/robots.txt'                    => [Module\RobotsTxt::class,             [R::GET]],
580         '/rsd.xml'                       => [Module\ReallySimpleDiscovery::class, [R::GET]],
581         '/smilies[/json]'                => [Module\Smilies::class,               [R::GET]],
582         '/statistics.json'               => [Module\Statistics::class,            [R::GET]],
583         '/toggle_mobile'                 => [Module\ToggleMobile::class,          [R::GET]],
584         '/tos'                           => [Module\Tos::class,                   [R::GET]],
585
586         '/update_community[/{content}]'  => [Module\Update\Community::class,      [R::GET]],
587
588         '/update_network' => [
589                 '[/]'                        => [Module\Update\Network::class, [R::GET]],
590                 '/archive/{from:\d\d\d\d-\d\d-\d\d}[/{to:\d\d\d\d-\d\d-\d\d}]' => [Module\Update\Network::class, [R::GET]],
591                 '/forum/{contact_id:\d+}'    => [Module\Update\Network::class, [R::GET]],
592                 '/group/{group_id:\d+}'      => [Module\Update\Network::class, [R::GET]],
593         ],
594
595         '/update_profile'                => [Module\Update\Profile::class,        [R::GET]],
596
597         '/view/theme/{theme}/style.pcss' => [Module\Theme::class,                 [R::GET]],
598         '/viewsrc/{item:\d+}'            => [Module\Debug\ItemBody::class,        [R::GET]],
599         '/webfinger'                     => [Module\Debug\WebFinger::class,       [R::GET]],
600         '/xrd'                           => [Module\Xrd::class,                   [R::GET]],
601 ];