3 * @copyright Copyright (C) 2010-2023, the Friendica project
5 * @license GNU AGPL version 3 or any later version
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.
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.
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/>.
20 * Configuration for the default routes in Friendica
22 * The syntax is either
23 * - 'route' => [ Module::class , [ HTTPMethod(s) ] ]
24 * - 'group' => [ 'route' => [ Module::class, [ HTTPMethod(s) ] ]
26 * It's possible to create recursive groups
30 use Friendica\App\Router as R;
34 '' => [Module\Profile\Index::class, [R::GET]],
35 '/contacts/common' => [Module\Profile\Common::class, [R::GET]],
36 '/contacts[/{type}]' => [Module\Profile\Contacts::class, [R::GET]],
37 '/media' => [Module\Profile\Media::class, [R::GET]],
38 '/photos' => [Module\Profile\Photos::class, [R::GET, R::POST]],
39 '/profile' => [Module\Profile\Profile::class, [R::GET]],
40 '/remote_follow' => [Module\Profile\RemoteFollow::class, [R::GET, R::POST]],
41 '/restricted' => [Module\Profile\Restricted::class, [R::GET ]],
42 '/schedule' => [Module\Profile\Schedule::class, [R::GET, R::POST]],
43 '/conversations[/{category}[/{date1}[/{date2}]]]' => [Module\Profile\Conversations::class, [R::GET]],
44 '/unkmail' => [Module\Profile\UnkMail::class, [R::GET, R::POST]],
49 '/verify_credentials[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Account\VerifyCredentials::class, [R::GET ]],
50 '/rate_limit_status[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Account\RateLimitStatus::class, [R::GET ]],
51 '/update_profile[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Account\UpdateProfile ::class, [ R::POST]],
52 '/update_profile_image[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Account\UpdateProfileImage::class, [ R::POST]],
55 '/blocks/ids[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Blocks\Ids::class, [R::GET ]],
56 '/blocks/list[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Blocks\Lists::class, [R::GET ]],
57 '/conversation/show[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\Statusnet\Conversation::class, [R::GET ]],
58 '/conversation/show/{id:\d+}[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\Statusnet\Conversation::class, [R::GET ]],
59 '/direct_messages' => [
60 '/all[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\DirectMessages\All::class, [R::GET ]],
61 '/conversation[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\DirectMessages\Conversation::class, [R::GET ]],
62 '/destroy[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\DirectMessages\Destroy::class, [ R::POST]],
63 '/new[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\DirectMessages\NewDM::class, [ R::POST]],
64 '/sent[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\DirectMessages\Sent::class, [R::GET ]],
66 '/direct_messages[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\DirectMessages\Inbox::class, [R::GET, R::POST]],
68 '/externalprofile/show[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Users\Show::class, [R::GET ]],
69 '/favorites/create[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Favorites\Create::class, [ R::POST]],
70 '/favorites/destroy[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Favorites\Destroy::class, [ R::POST]],
71 '/favorites[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Favorites::class, [R::GET ]],
72 '/followers/ids[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Followers\Ids::class, [R::GET ]],
73 '/followers/list[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Followers\Lists::class, [R::GET ]],
74 '/friends/ids[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Friends\Ids::class, [R::GET ]],
75 '/friends/list[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Friends\Lists::class, [R::GET ]],
76 '/friendships/destroy[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Friendships\Destroy::class, [ R::POST]],
77 '/friendships/incoming[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Friendships\Incoming::class, [R::GET ]],
78 '/friendships/show[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Friendships\Show::class, [R::GET ]],
81 '/activity/{verb:attendmaybe|attendno|attendyes|dislike|like|unattendmaybe|unattendno|unattendyes|undislike|unlike}[.{extension:json|xml|rss|atom}]'
82 => [Module\Api\Friendica\Activity::class, [ R::POST]],
83 '/statuses/{id:\d+}/dislike' => [Module\Api\Friendica\Statuses\Dislike::class, [ R::POST]],
84 '/statuses/{id:\d+}/disliked_by' => [Module\Api\Friendica\Statuses\DislikedBy::class, [R::GET ]],
85 '/statuses/{id:\d+}/undislike' => [Module\Api\Friendica\Statuses\Undislike::class, [ R::POST]],
86 '/notification/seen[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Notification\Seen::class, [ R::POST]],
87 '/notification[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Notification::class, [R::GET ]],
88 '/notifications[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Notification::class, [R::GET ]],
89 '/direct_messages_setseen[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\DirectMessages\Setseen::class, [ R::POST]],
90 '/direct_messages_search[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\DirectMessages\Search ::class, [R::GET ]],
91 '/events[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Events\Index::class, [R::GET ]],
92 '/event_create[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Events\Create::class, [ R::POST]],
93 '/event_delete[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Events\Delete::class, [ R::POST]],
94 '/group_show[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Group\Show::class, [R::GET ]],
95 '/group_create[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Group\Create::class, [ R::POST]],
96 '/group_delete[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Group\Delete::class, [ R::POST]],
97 '/group_update[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Group\Update::class, [ R::POST]],
98 '/profile/show[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Profile\Show::class, [R::GET ]],
99 '/photoalbums[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Photoalbum\Index::class, [R::GET ]],
100 '/photoalbum[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Photoalbum\Show::class, [R::GET ]],
101 '/photoalbum/delete[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Photoalbum\Delete::class, [ R::POST]],
102 '/photoalbum/update[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Photoalbum\Update::class, [ R::POST]],
103 '/photos/list[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Photo\Lists::class, [R::GET ]],
104 '/photo/create[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Photo\Create::class, [ R::POST]],
105 '/photo/delete[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Photo\Delete::class, [ R::POST]],
106 '/photo/update[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Photo\Update::class, [ R::POST]],
107 '/photo[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Photo::class, [R::GET ]],
110 '/gnusocial/config[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\GNUSocial\Config::class, [R::GET ]],
111 '/gnusocial/version[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\GNUSocial\Version::class, [R::GET ]],
112 '/help/test[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\Help\Test::class, [R::GET ]],
115 '/create[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Lists\Create::class, [ R::POST]],
116 '/destroy[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Lists\Destroy::class, [ R::POST]],
117 '/list[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Lists\Lists::class, [R::GET ]],
118 '/ownerships[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Lists\Ownership::class, [R::GET ]],
119 '/statuses[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Lists\Statuses::class, [R::GET ]],
120 '/subscriptions[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Lists\Lists::class, [R::GET ]],
121 '/update[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Lists\Update::class, [ R::POST]],
124 '/media/upload[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Media\Upload::class, [ R::POST]],
125 '/media/metadata/create[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Media\Metadata\Create::class, [ R::POST]],
126 '/saved_searches/list[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\SavedSearches::class, [R::GET ]],
127 '/search/tweets[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Search\Tweets::class, [R::GET ]],
128 '/search[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Search\Tweets::class, [R::GET ]],
129 '/statusnet/config[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\GNUSocial\Config::class, [R::GET ]],
130 '/statusnet/conversation[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\Statusnet\Conversation::class, [R::GET ]],
131 '/statusnet/conversation/{id:\d+}[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\Statusnet\Conversation::class, [R::GET ]],
132 '/statusnet/version[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\GNUSocial\Version::class, [R::GET ]],
135 '/destroy[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Destroy::class, [ R::POST]],
136 '/destroy/{id:\d+}[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Destroy::class, [ R::POST]],
137 '/followers[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Followers\Lists::class, [R::GET ]],
138 '/friends[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Friends\Lists::class, [R::GET ]],
139 '/friends_timeline[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\HomeTimeline::class, [R::GET ]],
140 '/home_timeline[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\HomeTimeline::class, [R::GET ]],
141 '/mediap[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Update::class, [ R::POST]],
142 '/mentions[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Mentions::class, [R::GET ]],
143 '/mentions_timeline[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Mentions::class, [R::GET ]],
144 '/networkpublic_timeline[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\NetworkPublicTimeline::class, [R::GET ]],
145 '/public_timeline[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\PublicTimeline::class, [R::GET ]],
146 '/replies[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Mentions::class, [R::GET ]],
147 '/retweet[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Retweet::class, [ R::POST]],
148 '/retweet/{id:\d+}[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Retweet::class, [ R::POST]],
149 '/show[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Show::class, [R::GET ]],
150 '/show/{id:\d+}[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Show::class, [R::GET ]],
151 '/update[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Update::class, [ R::POST]],
152 '/update_with_media[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Update::class, [ R::POST]],
153 '/user_timeline[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\UserTimeline::class, [R::GET ]],
157 '/lookup[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Users\Lookup::class, [R::GET ]],
158 '/search[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Users\Search::class, [R::GET ]],
159 '/show[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Users\Show::class, [R::GET ]],
160 '/show/{id:\d+}[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Users\Show::class, [R::GET ]],
162 '/whoami' => [Module\ActivityPub\Whoami::class, [R::GET ]],
166 '/' => [Module\Home::class, [R::GET]],
169 '/host-meta' => [Module\WellKnown\HostMeta::class, [R::GET]],
170 '/nodeinfo' => [Module\WellKnown\NodeInfo::class, [R::GET]],
171 '/security.txt' => [Module\WellKnown\SecurityTxt::class, [R::GET]],
172 '/webfinger' => [Module\Xrd::class, [R::GET]],
173 '/x-nodeinfo2' => [Module\NodeInfo210::class, [R::GET]],
174 '/x-social-relay' => [Module\WellKnown\XSocialRelay::class, [R::GET]],
178 '[/]' => [Module\Security\TwoFactor\Verify::class, [R::GET, R::POST]],
179 '/recovery' => [Module\Security\TwoFactor\Recovery::class, [R::GET, R::POST]],
180 '/trust' => [Module\Security\TwoFactor\Trust::class, [R::GET, R::POST]],
181 '/signout' => [Module\Security\TwoFactor\SignOut::class, [R::GET, R::POST]],
186 '/1.1' => $apiRoutes,
188 '/accounts' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
189 '/accounts/{id:\d+}' => [Module\Api\Mastodon\Accounts::class, [R::GET ]],
190 '/accounts/{id:\d+}/statuses' => [Module\Api\Mastodon\Accounts\Statuses::class, [R::GET ]],
191 '/accounts/{id:\d+}/featured_tags' => [Module\Api\Mastodon\Accounts\FeaturedTags::class, [R::GET ]], // Dummy, not supported
192 '/accounts/{id:\d+}/followers' => [Module\Api\Mastodon\Accounts\Followers::class, [R::GET ]],
193 '/accounts/{id:\d+}/following' => [Module\Api\Mastodon\Accounts\Following::class, [R::GET ]],
194 '/accounts/{id:\d+}/lists' => [Module\Api\Mastodon\Accounts\Lists::class, [R::GET ]],
195 '/accounts/{id:\d+}/identity_proofs' => [Module\Api\Mastodon\Accounts\IdentityProofs::class, [R::GET ]], // Dummy, not supported
196 '/accounts/{id:\d+}/follow' => [Module\Api\Mastodon\Accounts\Follow::class, [ R::POST]],
197 '/accounts/{id:\d+}/unfollow' => [Module\Api\Mastodon\Accounts\Unfollow::class, [ R::POST]],
198 '/accounts/{id:\d+}/block' => [Module\Api\Mastodon\Accounts\Block::class, [ R::POST]],
199 '/accounts/{id:\d+}/unblock' => [Module\Api\Mastodon\Accounts\Unblock::class, [ R::POST]],
200 '/accounts/{id:\d+}/mute' => [Module\Api\Mastodon\Accounts\Mute::class, [ R::POST]],
201 '/accounts/{id:\d+}/unmute' => [Module\Api\Mastodon\Accounts\Unmute::class, [ R::POST]],
202 '/accounts/{id:\d+}/pin' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
203 '/accounts/{id:\d+}/unpin' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
204 '/accounts/{id:\d+}/note' => [Module\Api\Mastodon\Accounts\Note::class, [ R::POST]],
205 '/accounts/{id:\d+}/remove_from_followers' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
206 '/accounts/familiar_followers' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
207 '/accounts/lookup' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
208 '/accounts/relationships' => [Module\Api\Mastodon\Accounts\Relationships::class, [R::GET ]],
209 '/accounts/search' => [Module\Api\Mastodon\Accounts\Search::class, [R::GET ]],
210 '/accounts/update_credentials' => [Module\Api\Mastodon\Accounts\UpdateCredentials::class, [R::PATCH ]],
211 '/accounts/verify_credentials' => [Module\Api\Mastodon\Accounts\VerifyCredentials::class, [R::GET ]],
212 '/accounts/{name}' => [Module\Api\Mastodon\Accounts::class, [R::GET ]],
213 '/admin/accounts/{id:\d+}' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
214 '/admin/accounts/{id:\d+}/{action}' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
215 '/admin/dimensions' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
216 '/admin/measures' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
217 '/admin/retention' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
218 '/admin/trends/links' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
219 '/admin/trends/statuses' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
220 '/admin/trends/tags' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
221 '/admin/reports' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
222 '/admin/reports/{id:\d+}' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
223 '/admin/reports/{id:\d+}/{action}' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
224 '/announcements' => [Module\Api\Mastodon\Announcements::class, [R::GET ]], // Dummy, not supported
225 '/announcements/{id:\d+}/dismiss' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
226 '/announcements/{id:\d+}/reactions/{name}' => [Module\Api\Mastodon\Unimplemented::class, [R::PUT, R::DELETE]], // not supported
227 '/apps' => [Module\Api\Mastodon\Apps::class, [ R::POST]],
228 '/apps/verify_credentials' => [Module\Api\Mastodon\Apps\VerifyCredentials::class, [R::GET ]],
229 '/blocks' => [Module\Api\Mastodon\Blocks::class, [R::GET ]],
230 '/bookmarks' => [Module\Api\Mastodon\Bookmarks::class, [R::GET ]],
231 '/conversations' => [Module\Api\Mastodon\Conversations::class, [R::GET ]],
232 '/conversations/{id:\d+}' => [Module\Api\Mastodon\Conversations::class, [R::DELETE ]],
233 '/conversations/{id:\d+}/read' => [Module\Api\Mastodon\Conversations\Read::class, [R::POST ]],
234 '/custom_emojis' => [Module\Api\Mastodon\CustomEmojis::class, [R::GET ]],
235 '/domain_blocks' => [Module\Api\Mastodon\Unimplemented::class, [R::GET, R::POST, R::DELETE]], // not supported
236 '/directory' => [Module\Api\Mastodon\Directory::class, [R::GET ]],
237 '/emails/confirmations' => [Module\Api\Mastodon\Unimplemented::class, [R::POST ]], // not supported
238 '/endorsements' => [Module\Api\Mastodon\Endorsements::class, [R::GET ]], // Dummy, not supported
239 '/favourites' => [Module\Api\Mastodon\Favourited::class, [R::GET ]],
240 '/featured_tags' => [Module\Api\Mastodon\Unimplemented::class, [R::GET, R::POST]], // not supported
241 '/featured_tags/{id:\d+}' => [Module\Api\Mastodon\Unimplemented::class, [R::DELETE ]], // not supported
242 '/featured_tags/suggestions' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
243 '/filters/{id:\d+}' => [Module\Api\Mastodon\Unimplemented::class, [R::GET, R::POST, R::PUT, R::DELETE]], // not supported
244 '/follow_requests' => [Module\Api\Mastodon\FollowRequests::class, [R::GET ]],
245 '/follow_requests/{id:\d+}/{action}' => [Module\Api\Mastodon\FollowRequests::class, [ R::POST]],
246 '/followed_tags' => [Module\Api\Mastodon\FollowedTags::class, [R::GET ]],
247 '/instance' => [Module\Api\Mastodon\Instance::class, [R::GET ]],
248 '/instance/activity' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // @todo
249 '/instance/domain_blocks' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // @todo
250 '/instance/extended_description' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // @todo
251 '/instance/peers' => [Module\Api\Mastodon\Instance\Peers::class, [R::GET ]],
252 '/instance/rules' => [Module\Api\Mastodon\Instance\Rules::class, [R::GET ]],
253 '/lists' => [Module\Api\Mastodon\Lists::class, [R::GET, R::POST]],
254 '/lists/{id:\d+}' => [Module\Api\Mastodon\Lists::class, [R::GET, R::PUT, R::DELETE]],
255 '/lists/{id:\d+}/accounts' => [Module\Api\Mastodon\Lists\Accounts::class, [R::GET, R::POST, R::DELETE]],
256 '/markers' => [Module\Api\Mastodon\Markers::class, [R::GET, R::POST]],
257 '/media/{id:\d+}' => [Module\Api\Mastodon\Media::class, [R::GET, R::PUT ]],
258 '/mutes' => [Module\Api\Mastodon\Mutes::class, [R::GET ]],
259 '/notifications' => [Module\Api\Mastodon\Notifications::class, [R::GET ]],
260 '/notifications/{id:\d+}' => [Module\Api\Mastodon\Notifications::class, [R::GET ]],
261 '/notifications/clear' => [Module\Api\Mastodon\Notifications\Clear::class, [ R::POST]],
262 '/notifications/{id:\d+}/dismiss' => [Module\Api\Mastodon\Notifications\Dismiss::class, [ R::POST]],
263 '/polls/{id:\d+}' => [Module\Api\Mastodon\Polls::class, [R::GET ]],
264 '/polls/{id:\d+}/votes' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
265 '/preferences' => [Module\Api\Mastodon\Preferences::class, [R::GET ]],
266 '/push/subscription' => [Module\Api\Mastodon\PushSubscription::class, [R::GET, R::POST, R::PUT, R::DELETE]],
267 '/reports' => [Module\Api\Mastodon\Reports::class, [ R::POST]],
268 '/scheduled_statuses' => [Module\Api\Mastodon\ScheduledStatuses::class, [R::GET ]],
269 '/scheduled_statuses/{id:\d+}' => [Module\Api\Mastodon\ScheduledStatuses::class, [R::GET, R::PUT, R::DELETE]],
270 '/statuses' => [Module\Api\Mastodon\Statuses::class, [ R::POST]],
271 '/statuses/{id:\d+}' => [Module\Api\Mastodon\Statuses::class, [R::GET, R::PUT, R::DELETE]],
272 '/statuses/{id:\d+}/card' => [Module\Api\Mastodon\Statuses\Card::class, [R::GET ]],
273 '/statuses/{id:\d+}/context' => [Module\Api\Mastodon\Statuses\Context::class, [R::GET ]],
274 '/statuses/{id:\d+}/reblogged_by' => [Module\Api\Mastodon\Statuses\RebloggedBy::class, [R::GET ]],
275 '/statuses/{id:\d+}/favourited_by' => [Module\Api\Mastodon\Statuses\FavouritedBy::class, [R::GET ]],
276 '/statuses/{id:\d+}/favourite' => [Module\Api\Mastodon\Statuses\Favourite::class, [ R::POST]],
277 '/statuses/{id:\d+}/unfavourite' => [Module\Api\Mastodon\Statuses\Unfavourite::class, [ R::POST]],
278 '/statuses/{id:\d+}/reblog' => [Module\Api\Mastodon\Statuses\Reblog::class, [ R::POST]],
279 '/statuses/{id:\d+}/unreblog' => [Module\Api\Mastodon\Statuses\Unreblog::class, [ R::POST]],
280 '/statuses/{id:\d+}/bookmark' => [Module\Api\Mastodon\Statuses\Bookmark::class, [ R::POST]],
281 '/statuses/{id:\d+}/unbookmark' => [Module\Api\Mastodon\Statuses\Unbookmark::class, [ R::POST]],
282 '/statuses/{id:\d+}/mute' => [Module\Api\Mastodon\Statuses\Mute::class, [ R::POST]],
283 '/statuses/{id:\d+}/unmute' => [Module\Api\Mastodon\Statuses\Unmute::class, [ R::POST]],
284 '/statuses/{id:\d+}/pin' => [Module\Api\Mastodon\Statuses\Pin::class, [ R::POST]],
285 '/statuses/{id:\d+}/unpin' => [Module\Api\Mastodon\Statuses\Unpin::class, [ R::POST]],
286 '/statuses/{id:\d+}/history' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
287 '/statuses/{id:\d+}/source' => [Module\Api\Mastodon\Statuses\Source::class, [R::GET ]],
288 '/streaming/direct' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
289 '/streaming/hashtag' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
290 '/streaming/hashtag/local' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
291 '/streaming/health' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
292 '/streaming/list' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
293 '/streaming/public' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
294 '/streaming/public/local' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
295 '/streaming/public/remote' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
296 '/streaming/user' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
297 '/streaming/user/notification' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
298 '/suggestions/{id:\d+}' => [Module\Api\Mastodon\Unimplemented::class, [R::DELETE ]], // not implemented
299 '/tags/{hashtag}' => [Module\Api\Mastodon\Tags::class, [R::GET ]],
300 '/tags/{hashtag}/follow' => [Module\Api\Mastodon\Tags\Follow::class, [ R::POST]],
301 '/tags/{hashtag}/unfollow' => [Module\Api\Mastodon\Tags\Unfollow::class, [ R::POST]],
302 '/timelines/direct' => [Module\Api\Mastodon\Timelines\Direct::class, [R::GET ]],
303 '/timelines/home' => [Module\Api\Mastodon\Timelines\Home::class, [R::GET ]],
304 '/timelines/list/{id:\d+}' => [Module\Api\Mastodon\Timelines\ListTimeline::class, [R::GET ]],
305 '/timelines/public' => [Module\Api\Mastodon\Timelines\PublicTimeline::class, [R::GET ]],
306 '/timelines/tag/{hashtag}' => [Module\Api\Mastodon\Timelines\Tag::class, [R::GET ]],
307 '/trends' => [Module\Api\Mastodon\Trends\Tags::class, [R::GET ]],
308 '/trends/links' => [Module\Api\Mastodon\Trends\Links::class, [R::GET ]],
309 '/trends/statuses' => [Module\Api\Mastodon\Trends\Statuses::class, [R::GET ]],
310 '/trends/tags' => [Module\Api\Mastodon\Trends\Tags::class, [R::GET ]],
313 '/instance' => [Module\Api\Mastodon\InstanceV2::class, [R::GET ]], // not supported
315 '/v{version:\d+}' => [
316 '/admin/accounts' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
317 '/filters' => [Module\Api\Mastodon\Filters::class, [R::GET ]], // Dummy, not supported
318 '/media' => [Module\Api\Mastodon\Media::class, [ R::POST]],
319 '/search' => [Module\Api\Mastodon\Search::class, [R::GET ]],
320 '/suggestions' => [Module\Api\Mastodon\Suggestions::class, [R::GET ]],
322 '/meta' => [Module\Api\Mastodon\Unimplemented::class, [R::POST ]], // not supported
323 '/oembed' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]],
324 '/proofs' => [Module\Api\Mastodon\Proofs::class, [R::GET ]], // Dummy, not supported
327 '/about[/more]' => [Module\About::class, [R::GET]],
330 '[/]' => [Module\Admin\Summary::class, [R::GET]],
332 '/addons' => [Module\Admin\Addons\Index::class, [R::GET, R::POST]],
333 '/addons/{addon}' => [Module\Admin\Addons\Details::class, [R::GET, R::POST]],
335 '/dbsync[/{action}[/{update:\d+}]]' => [Module\Admin\DBSync::class, [R::GET]],
337 '/features' => [Module\Admin\Features::class, [R::GET, R::POST]],
338 '/federation' => [Module\Admin\Federation::class, [R::GET]],
340 '/logs/view' => [Module\Admin\Logs\View::class, [R::GET]],
341 '/logs' => [Module\Admin\Logs\Settings::class, [R::GET, R::POST]],
343 '/phpinfo' => [Module\Admin\PhpInfo::class, [R::GET]],
345 '/queue[/{status}]' => [Module\Admin\Queue::class, [R::GET]],
347 '/site' => [Module\Admin\Site::class, [R::GET, R::POST]],
349 '/storage' => [Module\Admin\Storage::class, [R::GET, R::POST]],
350 '/storage/{name}' => [Module\Admin\Storage::class, [ R::POST]],
352 '/themes' => [Module\Admin\Themes\Index::class, [R::GET, R::POST]],
353 '/themes/{theme}' => [Module\Admin\Themes\Details::class, [R::GET, R::POST]],
354 '/themes/{theme}/embed' => [Module\Admin\Themes\Embed::class, [R::GET, R::POST]],
356 '/tos' => [Module\Admin\Tos::class, [R::GET, R::POST]],
358 '/amcd' => [Module\AccountManagementControlDocument::class, [R::GET]],
359 '/acctlink' => [Module\Acctlink::class, [R::GET]],
360 '/apps' => [Module\Apps::class, [R::GET]],
361 '/attach/{item:\d+}' => [Module\Attach::class, [R::GET]],
363 // Mastodon route used by Fedifind to follow people who set their Webfinger address in their Twitter bio
364 '/authorize_interaction' => [Module\Contact\Follow::class, [R::GET, R::POST]],
366 '/babel' => [Module\Debug\Babel::class, [R::GET, R::POST]],
367 '/debug/ap' => [Module\Debug\ActivityPubConversion::class, [R::GET, R::POST]],
369 '/blocklist/domain/download' => [Module\Blocklist\Domain\Download::class, [R::GET]],
371 '/bookmarklet' => [Module\Bookmarklet::class, [R::GET]],
374 '[/]' => [Module\Calendar\Show::class, [R::GET ]],
375 '/show/{nickname}' => [Module\Calendar\Show::class, [R::GET ]],
376 '/export/{nickname}[/{format:csv|ical}]' => [Module\Calendar\Export::class, [R::GET ]],
377 '/api/{action:ignore|unignore|delete}/{id:\d+}' => [Module\Calendar\Event\API::class, [R::GET ]],
378 '/api/{action:create}' => [Module\Calendar\Event\API::class, [ R::POST]],
379 '/api/get[/{nickname}]' => [Module\Calendar\Event\Get::class, [R::GET ]],
380 '/event/show/{id:\d+}' => [Module\Calendar\Event\Show::class, [R::GET ]],
381 '/event/show/{nickname}/{id:\d+}' => [Module\Calendar\Event\Show::class, [R::GET ]],
382 '/event/{mode:new}' => [Module\Calendar\Event\Form::class, [R::GET ]],
383 '/event/{mode:edit|copy}/{id:\d+}' => [Module\Calendar\Event\Form::class, [R::GET ]],
386 '/community[/{content}]' => [Module\Conversation\Community::class, [R::GET]],
388 '/compose[/{type}]' => [Module\Item\Compose::class, [R::GET, R::POST]],
391 '[/]' => [Module\Contact::class, [R::GET]],
392 '/{id:\d+}[/]' => [Module\Contact\Profile::class, [R::GET, R::POST]],
393 '/{id:\d+}/{action:block|ignore|collapse|update|updateprofile}'
394 => [Module\Contact\Profile::class, [R::GET]],
395 '/{id:\d+}/advanced' => [Module\Contact\Advanced::class, [R::GET, R::POST]],
396 '/{id:\d+}/conversations' => [Module\Contact\Conversations::class, [R::GET]],
397 '/{id:\d+}/contacts[/{type}]' => [Module\Contact\Contacts::class, [R::GET]],
398 '/{id:\d+}/media' => [Module\Contact\Media::class, [R::GET]],
399 '/{id:\d+}/posts' => [Module\Contact\Posts::class, [R::GET]],
400 '/{id:\d+}/revoke' => [Module\Contact\Revoke::class, [R::GET, R::POST]],
401 '/archived' => [Module\Contact::class, [R::GET]],
402 '/batch' => [Module\Contact::class, [R::GET, R::POST]],
403 '/blocked' => [Module\Contact::class, [R::GET]],
404 '/follow' => [Module\Contact\Follow::class, [R::GET, R::POST]],
405 '/hidden' => [Module\Contact::class, [R::GET]],
406 '/hovercard' => [Module\Contact\Hovercard::class, [R::GET]],
407 '/ignored' => [Module\Contact::class, [R::GET]],
408 '/collapsed' => [Module\Contact::class, [R::GET]],
409 '/match' => [Module\Contact\MatchInterests::class, [R::GET]],
410 '/pending' => [Module\Contact::class, [R::GET]],
411 '/redir/{id:\d+}' => [Module\Contact\Redir::class, [R::GET]],
412 '/suggestions' => [Module\Contact\Suggestions::class, [R::GET]],
413 '/unfollow' => [Module\Contact\Unfollow::class, [R::GET, R::POST]],
416 '/credits' => [Module\Credits::class, [R::GET]],
417 '/delegation' => [Module\Delegation::class, [R::GET, R::POST]],
418 '/dfrn_notify[/{nickname}]' => [Module\DFRN\Notify::class, [R::POST]],
419 '/dfrn_poll/{nickname}' => [Module\DFRN\Poll::class, [R::GET]],
420 '/dirfind' => [Module\Search\Directory::class, [R::GET]],
421 '/directory' => [Module\Directory::class, [R::GET]],
423 '/display/{guid}' => [Module\Item\Display::class, [R::GET]],
424 '/display/feed-item/{uri-id}[.atom]' => [Module\Item\Feed::class, [R::GET]],
425 '/display/feed-item/{uri-id}/{mode:conversation}[.atom]' => [Module\Item\Feed::class, [R::GET]],
427 '/featured/{nickname}' => [Module\ActivityPub\Featured::class, [R::GET]],
429 '/feed/{nickname}[/{type:posts|comments|replies|activity}]' => [Module\Feed::class, [R::GET]],
431 '/feedtest' => [Module\Debug\Feed::class, [R::GET]],
434 '/post/{guid}' => [Module\Diaspora\Fetch::class, [R::GET]],
435 '/status_message/{guid}' => [Module\Diaspora\Fetch::class, [R::GET]],
436 '/reshare/{guid}' => [Module\Diaspora\Fetch::class, [R::GET]],
438 '/filed' => [Module\Search\Filed::class, [R::GET]],
439 '/filer[/{id:\d+}]' => [Module\Filer\SaveTag::class, [R::GET]],
440 '/filerm/{id:\d+}' => [Module\Filer\RemoveTag::class, [R::GET, R::POST]],
441 '/follow_confirm' => [Module\FollowConfirm::class, [R::GET, R::POST]],
442 '/followers/{nickname}' => [Module\ActivityPub\Followers::class, [R::GET]],
443 '/following/{nickname}' => [Module\ActivityPub\Following::class, [R::GET]],
444 '/friendica[/json]' => [Module\Friendica::class, [R::GET]],
445 '/friendica/inbox' => [Module\ActivityPub\Inbox::class, [R::GET, R::POST]],
447 '/fsuggest/{contact:\d+}' => [Module\FriendSuggest::class, [R::GET, R::POST]],
450 '[/]' => [Module\Group::class, [R::GET, R::POST]],
451 '/{group:\d+}' => [Module\Group::class, [R::GET, R::POST]],
452 '/none' => [Module\Group::class, [R::GET, R::POST]],
453 '/new' => [Module\Group::class, [R::GET, R::POST]],
454 '/drop/{group:\d+}' => [Module\Group::class, [R::GET, R::POST]],
455 '/{group:\d+}/{contact:\d+}' => [Module\Group::class, [R::GET, R::POST]],
456 '/{group:\d+}/{command:add|remove}/{contact:\d+}' => [Module\Group::class, [R::GET, R::POST]],
458 '/hashtag' => [Module\Hashtag::class, [R::GET]],
459 '/help[/{doc:.+}]' => [Module\Help::class, [R::GET]],
460 '/home' => [Module\Home::class, [R::GET]],
461 '/hcard/{profile}[/{action}]' => [Module\HCard::class, [R::GET]],
462 '/inbox[/{nickname}]' => [Module\ActivityPub\Inbox::class, [R::GET, R::POST]],
463 '/invite' => [Module\Invite::class, [R::GET, R::POST]],
466 '[/]' => [Module\Install::class, [R::GET, R::POST]],
467 '/testrewrite' => [Module\Install::class, [R::GET]],
470 '/item/{id:\d+}' => [
471 '/activity/{verb}' => [Module\Item\Activity::class, [ R::POST]],
472 '/follow' => [Module\Item\Follow::class, [ R::POST]],
473 '/ignore' => [Module\Item\Ignore::class, [ R::POST]],
474 '/pin' => [Module\Item\Pin::class, [ R::POST]],
475 '/star' => [Module\Item\Star::class, [ R::POST]],
478 '/localtime' => [Module\Debug\Localtime::class, [R::GET, R::POST]],
479 '/login' => [Module\Security\Login::class, [R::GET, R::POST]],
480 '/logout' => [Module\Security\Logout::class, [R::GET, R::POST]],
481 '/magic' => [Module\Magic::class, [R::GET]],
482 '/manifest' => [Module\Manifest::class, [R::GET]],
483 '/friendica.webmanifest' => [Module\Manifest::class, [R::GET]],
486 '/attachment/browser' => [Module\Media\Attachment\Browser::class, [R::GET]],
487 '/attachment/upload' => [Module\Media\Attachment\Upload::class, [ R::POST]],
488 '/photo/browser[/{album}]' => [Module\Media\Photo\Browser::class, [R::GET]],
489 '/photo/upload' => [Module\Media\Photo\Upload::class, [ R::POST]],
493 '[/]' => [Module\Moderation\Summary::class, [R::GET]],
495 '/blocklist/contact' => [Module\Moderation\Blocklist\Contact::class, [R::GET, R::POST]],
496 '/blocklist/server' => [Module\Moderation\Blocklist\Server\Index::class, [R::GET, R::POST]],
497 '/blocklist/server/add' => [Module\Moderation\Blocklist\Server\Add::class, [R::GET, R::POST]],
498 '/blocklist/server/import' => [Module\Moderation\Blocklist\Server\Import::class, [R::GET, R::POST]],
500 '/item/delete' => [Module\Moderation\Item\Delete::class, [R::GET, R::POST]],
501 '/item/source[/{guid}]' => [Module\Moderation\Item\Source::class, [R::GET, R::POST]],
503 '/users[/{action}/{uid}]' => [Module\Moderation\Users\Index::class, [R::GET, R::POST]],
504 '/users/active[/{action}/{uid}]' => [Module\Moderation\Users\Active::class, [R::GET, R::POST]],
505 '/users/pending[/{action}/{uid}]' => [Module\Moderation\Users\Pending::class, [R::GET, R::POST]],
506 '/users/blocked[/{action}/{uid}]' => [Module\Moderation\Users\Blocked::class, [R::GET, R::POST]],
507 '/users/deleted' => [Module\Moderation\Users\Deleted::class, [R::GET ]],
508 '/users/create' => [Module\Moderation\Users\Create::class, [R::GET, R::POST]],
510 '/modexp/{nick}' => [Module\PublicRSAKey::class, [R::GET]],
511 '/newmember' => [Module\Welcome::class, [R::GET]],
512 '/nodeinfo/1.0' => [Module\NodeInfo110::class, [R::GET]],
513 '/nodeinfo/2.0' => [Module\NodeInfo120::class, [R::GET]],
514 '/nogroup' => [Module\Group::class, [R::GET]],
517 '/{nick}' => [Module\NoScrape::class, [R::GET]],
518 '/{profile}/view' => [Module\NoScrape::class, [R::GET]],
521 '/notifications' => [
522 '/network[/json]' => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
523 '/system[/json]' => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
524 '/personal[/json]' => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
525 '/home[/json]' => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
526 '/intros[/json]' => [Module\Notifications\Introductions::class, [R::GET, R::POST]],
527 '/intros/all[/json]' => [Module\Notifications\Introductions::class, [R::GET, R::POST]],
528 '/intros/{contact:\d+}[/json]' => [Module\Notifications\Introductions::class, [R::GET, R::POST]],
532 '[/]' => [Module\Notifications\Notification::class, [R::GET]],
533 '/mark/all' => [Module\Notifications\Notification::class, [R::GET]],
534 '/{id:\d+}' => [Module\Notifications\Notification::class, [R::GET, R::POST]],
537 '/notify/{notify_id:\d+}' => [Module\Notifications\Notification::class, [R::GET]],
540 '/acknowledge' => [Module\OAuth\Acknowledge::class, [R::GET, R::POST]],
541 '/authorize' => [Module\OAuth\Authorize::class, [R::GET]],
542 '/revoke' => [Module\OAuth\Revoke::class, [R::POST]],
543 '/token' => [Module\OAuth\Token::class, [R::POST]],
546 '/objects/{guid}[/{activity}]' => [Module\ActivityPub\Objects::class, [R::GET]],
549 '/b2h' => [Module\Oembed::class, [R::GET]],
550 '/h2b' => [Module\Oembed::class, [R::GET]],
551 '/{hash}' => [Module\Oembed::class, [R::GET]],
553 '/outbox/{nickname}' => [Module\ActivityPub\Outbox::class, [R::GET, R::POST]],
554 '/owa' => [Module\Owa::class, [R::GET]],
555 '/openid' => [Module\Security\OpenID::class, [R::GET]],
556 '/opensearch' => [Module\OpenSearch::class, [R::GET]],
558 '/parseurl' => [Module\ParseUrl::class, [R::GET]],
559 '/permission/tooltip/{type}/{id:\d+}' => [Module\PermissionTooltip::class, [R::GET]],
562 '/{size:thumb_small|scaled_full}_{name}' => [Module\Photo::class, [R::GET]],
563 '/{name}' => [Module\Photo::class, [R::GET]],
564 '/{type}/{id:\d+}' => [Module\Photo::class, [R::GET]],
565 '/{type:contact|header}/{guid}' => [Module\Photo::class, [R::GET]],
566 // User Id Fallback, to remove after version 2021.12
567 '/{type}/{uid_ext:\d+\..*}' => [Module\Photo::class, [R::GET]],
568 '/{type}/{nickname_ext}' => [Module\Photo::class, [R::GET]],
569 // Contact Id Fallback, to remove after version 2021.12
570 '/{type:contact|header}/{customsize:\d+}/{contact_id:\d+}' => [Module\Photo::class, [R::GET]],
571 '/{type:contact|header}/{customsize:\d+}/{guid}' => [Module\Photo::class, [R::GET]],
572 '/{type}/{customsize:\d+}/{id:\d+}' => [Module\Photo::class, [R::GET]],
573 // User Id Fallback, to remove after version 2021.12
574 '/{type}/{customsize:\d+}/{uid_ext:\d+\..*}' => [Module\Photo::class, [R::GET]],
575 '/{type}/{customsize:\d+}/{nickname_ext}' => [Module\Photo::class, [R::GET]],
578 // Kept for backwards-compatibility
579 // @TODO remove by version 2023.12
580 '/photos/{nickname}' => [Module\Profile\Photos::class, [R::GET]],
582 '/ping' => [Module\Notifications\Ping::class, [R::GET]],
585 '/{post_id}/edit' => [Module\Post\Edit::class, [R::GET ]],
586 '/{post_id}/share' => [Module\Post\Share::class, [R::GET ]],
587 '/{item_id}/tag/add' => [Module\Post\Tag\Add::class, [ R::POST]],
588 '/{item_id}/tag/remove[/{tag_name}]' => [Module\Post\Tag\Remove::class, [R::GET, R::POST]],
591 '/pretheme' => [Module\ThemeDetails::class, [R::GET]],
592 '/probe' => [Module\Debug\Probe::class, [R::GET]],
594 '/profile/{nickname}' => $profileRoutes,
595 '/u/{nickname}' => $profileRoutes,
596 '/~{nickname}' => $profileRoutes,
599 '[/]' => [Module\Proxy::class, [R::GET]],
600 '/{url}' => [Module\Proxy::class, [R::GET]],
601 '/{sub1}/{url}' => [Module\Proxy::class, [R::GET]],
602 '/{sub1}/{sub2}/{url}' => [Module\Proxy::class, [R::GET]],
605 // OStatus stack modules
606 '/ostatus/repair' => [Module\OStatus\Repair::class, [R::GET ]],
607 '/ostatus/subscribe' => [Module\OStatus\Subscribe::class, [R::GET ]],
608 '/poco' => [Module\User\PortableContacts::class, [R::GET ]],
609 '/pubsub' => [Module\OStatus\PubSub::class, [R::GET, R::POST]],
610 '/pubsub/{nickname}[/{cid:\d+}]' => [Module\OStatus\PubSub::class, [R::GET, R::POST]],
611 '/pubsubhubbub[/{nickname}]' => [Module\OStatus\PubSubHubBub::class, [ R::POST]],
612 '/salmon[/{nickname}]' => [Module\OStatus\Salmon::class, [ R::POST]],
615 '[/]' => [Module\Search\Index::class, [R::GET ]],
616 '/acl' => [Module\Search\Acl::class, [R::GET, R::POST]],
617 '/saved/add' => [Module\Search\Saved::class, [R::GET ]],
618 '/saved/remove' => [Module\Search\Saved::class, [R::GET ]],
619 '/user/tags' => [Module\Search\Tags::class, [ R::POST]],
623 '/{type:public}' => [Module\Diaspora\Receive::class, [ R::POST]],
624 '/{type:users}/{guid}' => [Module\Diaspora\Receive::class, [ R::POST]],
628 '/password_too_long' => [Module\Security\PasswordTooLong::class, [R::GET, R::POST]],
632 '[/]' => [Module\Settings\Account::class, [R::GET, R::POST]],
634 '[/]' => [Module\Settings\Account::class, [R::GET, R::POST]],
635 '/{open}' => [Module\Settings\Account::class, [R::GET, R::POST]],
637 '/addons[/{addon}]' => [Module\Settings\Addons::class, [R::GET, R::POST]],
638 '/connectors[/{connector}]' => [Module\Settings\Connectors::class, [R::GET, R::POST]],
639 '/delegation[/{action}/{user_id}]' => [Module\Settings\Delegation::class, [R::GET, R::POST]],
640 '/display' => [Module\Settings\Display::class, [R::GET, R::POST]],
641 '/features' => [Module\Settings\Features::class, [R::GET, R::POST]],
642 '/oauth' => [Module\Settings\OAuth::class, [R::GET, R::POST]],
644 '[/]' => [Module\Settings\Profile\Index::class, [R::GET, R::POST]],
645 '/photo[/new]' => [Module\Settings\Profile\Photo\Index::class, [R::GET, R::POST]],
646 '/photo/crop/{guid}' => [Module\Settings\Profile\Photo\Crop::class, [R::GET, R::POST]],
648 '/removeme' => [Module\Settings\RemoveMe::class, [R::GET, R::POST]],
649 '/userexport[/{action}]' => [Module\Settings\UserExport::class, [R::GET ]],
651 '[/]' => [Module\Settings\TwoFactor\Index::class, [R::GET, R::POST]],
652 '/recovery' => [Module\Settings\TwoFactor\Recovery::class, [R::GET, R::POST]],
653 '/app_specific' => [Module\Settings\TwoFactor\AppSpecific::class, [R::GET, R::POST]],
654 '/verify' => [Module\Settings\TwoFactor\Verify::class, [R::GET, R::POST]],
655 '/trusted' => [Module\Settings\TwoFactor\Trusted::class, [R::GET, R::POST]],
660 '[/]' => [Module\Conversation\Network::class, [R::GET]],
661 '/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]],
662 '/forum/{contact_id:\d+}' => [Module\Conversation\Network::class, [R::GET]],
663 '/group/{group_id:\d+}' => [Module\Conversation\Network::class, [R::GET]],
666 '/randprof' => [Module\RandomProfile::class, [R::GET]],
667 '/register' => [Module\Register::class, [R::GET, R::POST]],
668 '/robots.txt' => [Module\RobotsTxt::class, [R::GET]],
669 '/rsd.xml' => [Module\ReallySimpleDiscovery::class, [R::GET]],
670 '/smilies[/json]' => [Module\Smilies::class, [R::GET]],
671 '/statistics.json' => [Module\Statistics::class, [R::GET]],
672 '/toggle_mobile' => [Module\ToggleMobile::class, [R::GET]],
673 '/tos' => [Module\Tos::class, [R::GET]],
675 '/update_community[/{content}]' => [Module\Update\Community::class, [R::GET]],
677 '/update_display' => [Module\Update\Display::class, [R::GET]],
679 '/update_network' => [
680 '[/]' => [Module\Update\Network::class, [R::GET]],
681 '/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]],
682 '/forum/{contact_id:\d+}' => [Module\Update\Network::class, [R::GET]],
683 '/group/{group_id:\d+}' => [Module\Update\Network::class, [R::GET]],
686 '/update_profile' => [Module\Update\Profile::class, [R::GET]],
688 '/user/import' => [Module\User\Import::class, [R::GET, R::POST]],
690 '/view/theme/{theme}/style.pcss' => [Module\Theme::class, [R::GET]],
691 '/viewsrc/{item:\d+}' => [Module\Debug\ItemBody::class, [R::GET]],
692 '/webfinger' => [Module\Debug\WebFinger::class, [R::GET]],
693 '/xrd' => [Module\Xrd::class, [R::GET]],