3 use Friendica\App\Router as R;
7 * Configuration for the default routes in Friendica
10 * - 'route' => [ Module::class , [ HTTPMethod(s) ] ]
11 * - 'group' => [ 'route' => [ Module::class, [ HTTPMethod(s) ] ]
13 * It's possible to create recursive groups
16 '/' => [Module\Home::class, [R::GET]],
19 '/host-meta' => [Module\WellKnown\HostMeta::class, [R::GET]],
20 '/nodeinfo[/1.0]' => [Module\NodeInfo::class, [R::GET]],
21 '/webfinger' => [Module\Xrd::class, [R::GET]],
22 '/x-social-relay' => [Module\WellKnown\XSocialRelay::class, [R::GET]],
26 '[/]' => [Module\TwoFactor\Verify::class, [R::GET, R::POST]],
27 '/recovery' => [Module\TwoFactor\Recovery::class, [R::GET, R::POST]],
31 '[/]' => [Module\Admin\Summary::class, [R::GET]],
33 '/addons' => [Module\Admin\Addons\Index::class, [R::GET, R::POST]],
34 '/addons/{addon}' => [Module\Admin\Addons\Details::class, [R::GET, R::POST]],
37 '/blocklist/contact' => [Module\Admin\Blocklist\Contact::class, [R::GET, R::POST]],
38 '/blocklist/server' => [Module\Admin\Blocklist\Server::class, [R::GET, R::POST]],
40 '/dbsync[/check]' => [Module\Admin\DBSync::class, [R::GET]],
41 '/dbsync/{update:\d+}' => [Module\Admin\DBSync::class, [R::GET]],
42 '/dbsync/mark/{update:\d+}' => [Module\Admin\DBSync::class, [R::GET]],
44 '/features' => [Module\Admin\Features::class, [R::GET, R::POST]],
45 '/federation' => [Module\Admin\Federation::class, [R::GET]],
47 '/item/delete' => [Module\Admin\Item\Delete::class, [R::GET, R::POST]],
48 '/item/source[/{guid}]' => [Module\Admin\Item\Source::class, [R::GET, R::POST]],
50 '/logs/view' => [Module\Admin\Logs\View::class, [R::GET]],
51 '/logs' => [Module\Admin\Logs\Settings::class, [R::GET, R::POST]],
53 '/phpinfo' => [Module\Admin\PhpInfo::class, [R::GET]],
55 '/queue[/deferred]' => [Module\Admin\Queue::class, [R::GET]],
57 '/site' => [Module\Admin\Site::class, [R::GET, R::POST]],
59 '/themes' => [Module\Admin\Themes\Index::class, [R::GET, R::POST]],
60 '/themes/{theme}' => [Module\Admin\Themes\Details::class, [R::GET, R::POST]],
61 '/themes/{theme}/embed' => [Module\Admin\Themes\Embed::class, [R::GET, R::POST]],
63 '/tos' => [Module\Admin\Tos::class, [R::GET, R::POST]],
65 '/users[/{action}/{uid}]' => [Module\Admin\Users::class, [R::GET, R::POST]],
67 '/amcd' => [Module\AccountManagementControlDocument::class, [R::GET]],
68 '/acctlink' => [Module\Acctlink::class, [R::GET]],
69 '/allfriends/{id:\d+}' => [Module\AllFriends::class, [R::GET]],
70 '/apps' => [Module\Apps::class, [R::GET]],
71 '/attach/{item:\d+}' => [Module\Attach::class, [R::GET]],
72 '/babel' => [Module\Debug\Babel::class, [R::GET, R::POST]],
73 '/bookmarklet' => [Module\Bookmarklet::class, [R::GET]],
74 '/compose[/{type}]' => [Module\Item\Compose::class, [R::GET, R::POST]],
77 '[/]' => [Module\Contact::class, [R::GET]],
78 '/{id:\d+}[/]' => [Module\Contact::class, [R::GET, R::POST]],
79 '/{id:\d+}/archive' => [Module\Contact::class, [R::GET]],
80 '/{id:\d+}/block' => [Module\Contact::class, [R::GET]],
81 '/{id:\d+}/conversations' => [Module\Contact::class, [R::GET]],
82 '/{id:\d+}/drop' => [Module\Contact::class, [R::GET]],
83 '/{id:\d+}/ignore' => [Module\Contact::class, [R::GET]],
84 '/{id:\d+}/posts' => [Module\Contact::class, [R::GET]],
85 '/{id:\d+}/update' => [Module\Contact::class, [R::GET]],
86 '/{id:\d+}/updateprofile' => [Module\Contact::class, [R::GET]],
87 '/archived' => [Module\Contact::class, [R::GET]],
88 '/batch' => [Module\Contact::class, [R::GET, R::POST]],
89 '/pending' => [Module\Contact::class, [R::GET]],
90 '/blocked' => [Module\Contact::class, [R::GET]],
91 '/hidden' => [Module\Contact::class, [R::GET]],
92 '/ignored' => [Module\Contact::class, [R::GET]],
94 '/credits' => [Module\Credits::class, [R::GET]],
95 '/dirfind' => [Module\Search\Directory::class, [R::GET]],
96 '/directory' => [Module\Directory::class, [R::GET]],
99 '/{nickname}' => [Module\Feed::class, [R::GET]],
100 '/{nickname}/posts' => [Module\Feed::class, [R::GET]],
101 '/{nickname}/comments' => [Module\Feed::class, [R::GET]],
102 '/{nickname}/replies' => [Module\Feed::class, [R::GET]],
103 '/{nickname}/activity' => [Module\Feed::class, [R::GET]],
105 '/feedtest' => [Module\Debug\Feed::class, [R::GET]],
108 '/post/{guid}' => [Module\Diaspora\Fetch::class, [R::GET]],
109 '/status_message/{guid}' => [Module\Diaspora\Fetch::class, [R::GET]],
110 '/reshare/{guid}' => [Module\Diaspora\Fetch::class, [R::GET]],
112 '/filer[/{id:\d+}]' => [Module\Filer\SaveTag::class, [R::GET]],
113 '/filerm/{id:\d+}' => [Module\Filer\RemoveTag::class, [R::GET]],
114 '/follow_confirm' => [Module\FollowConfirm::class, [R::GET, R::POST]],
115 '/followers/{owner}' => [Module\Followers::class, [R::GET]],
116 '/following/{owner}' => [Module\Following::class, [R::GET]],
117 '/friendica[/json]' => [Module\Friendica::class, [R::GET]],
120 '[/]' => [Module\Group::class, [R::GET, R::POST]],
121 '/{group:\d+}' => [Module\Group::class, [R::GET, R::POST]],
122 '/none' => [Module\Group::class, [R::GET, R::POST]],
123 '/new' => [Module\Group::class, [R::GET, R::POST]],
124 '/drop/{group:\d+}' => [Module\Group::class, [R::GET, R::POST]],
125 '/{group:\d+}/{contact:\d+}' => [Module\Group::class, [R::GET, R::POST]],
127 '/{group:\d+}/add/{contact:\d+}' => [Module\Group::class, [R::GET, R::POST]],
128 '/{group:\d+}/remove/{contact:\d+}' => [Module\Group::class, [R::GET, R::POST]],
130 '/hashtag' => [Module\Hashtag::class, [R::GET]],
131 '/home' => [Module\Home::class, [R::GET]],
132 '/help[/{doc:.+}]' => [Module\Help::class, [R::GET]],
133 '/inbox[/{nickname}]' => [Module\Inbox::class, [R::GET, R::POST]],
134 '/invite' => [Module\Invite::class, [R::GET, R::POST]],
137 '[/]' => [Module\Install::class, [R::GET, R::POST]],
138 '/testrewrite' => [Module\Install::class, [R::GET]],
140 '/like/{item:\d+}' => [Module\Like::class, [R::GET]],
141 '/localtime' => [Module\Debug\Localtime::class, [R::GET, R::POST]],
142 '/login' => [Module\Login::class, [R::GET, R::POST]],
143 '/logout' => [Module\Logout::class, [R::GET, R::POST]],
144 '/magic' => [Module\Magic::class, [R::GET]],
145 '/maintenance' => [Module\Maintenance::class, [R::GET]],
146 '/manifest' => [Module\Manifest::class, [R::GET]],
147 '/modexp/{nick}' => [Module\PublicRSAKey::class, [R::GET]],
148 '/newmember' => [Module\Welcome::class, [R::GET]],
149 '/nodeinfo/1.0' => [Module\NodeInfo::class, [R::GET]],
150 '/nogroup' => [Module\Group::class, [R::GET]],
153 '[/]' => [Module\Notifications\Notify::class, [R::GET]],
154 '/view/{id:\d+}' => [Module\Notifications\Notify::class, [R::GET]],
155 '/mark/all' => [Module\Notifications\Notify::class, [R::GET]],
157 '/objects/{guid}' => [Module\Objects::class, [R::GET]],
160 '/b2h' => [Module\Oembed::class, [R::GET]],
161 '/h2b' => [Module\Oembed::class, [R::GET]],
162 '/{hash}' => [Module\Oembed::class, [R::GET]],
164 '/outbox/{owner}' => [Module\Outbox::class, [R::GET]],
165 '/owa' => [Module\Owa::class, [R::GET]],
166 '/opensearch' => [Module\OpenSearch::class, [R::GET]],
169 '/{name}' => [Module\Photo::class, [R::GET]],
170 '/{type}/{name}' => [Module\Photo::class, [R::GET]],
171 '/{type}/{customize}/{name}' => [Module\Photo::class, [R::GET]],
174 '/pretheme' => [Module\ThemeDetails::class, [R::GET]],
175 '/probe' => [Module\Debug\Probe::class, [R::GET]],
178 '/{nickname}' => [Module\Profile::class, [R::GET]],
179 '/{nickname}/{to:\d{4}-\d{2}-\d{2}}/{from:\d{4}-\d{2}-\d{2}}' => [Module\Profile::class, [R::GET]],
180 '/{nickname}/contacts[/{type}]' => [Module\Profile\Contacts::class, [R::GET]],
181 '/{profile:\d+}/view' => [Module\Profile::class, [R::GET]],
185 '[/]' => [Module\Proxy::class, [R::GET]],
186 '/{url}' => [Module\Proxy::class, [R::GET]],
187 '/{sub1}/{url}' => [Module\Proxy::class, [R::GET]],
188 '/{sub1}/{sub2}/{url}' => [Module\Proxy::class, [R::GET]],
192 '[/]' => [Module\Search\Index::class, [R::GET]],
193 '/acl' => [Module\Search\Acl::class, [R::GET, R::POST]],
194 '/saved/add/{term}' => [Module\Search\Saved::class, [R::GET]],
195 '/saved/remove/{term}' => [Module\Search\Saved::class, [R::GET]],
200 '[/]' => [Module\Settings\TwoFactor\Index::class, [R::GET, R::POST]],
201 '/recovery' => [Module\Settings\TwoFactor\Recovery::class, [R::GET, R::POST]],
202 '/app_specific' => [Module\Settings\TwoFactor\AppSpecific::class, [R::GET, R::POST]],
203 '/verify' => [Module\Settings\TwoFactor\Verify::class, [R::GET, R::POST]],
205 '/delegation[/{action}/{user_id}]' => [Module\Settings\Delegation::class, [R::GET, R::POST]],
206 '/uexport[/{action}]' => [Module\Settings\Uexport::class, [R::GET, R::POST]],
209 '/randprof' => [Module\RandomProfile::class, [R::GET]],
210 '/register' => [Module\Register::class, [R::GET, R::POST]],
211 '/robots.txt' => [Module\RobotsTxt::class, [R::GET]],
212 '/rsd.xml' => [Module\ReallySimpleDiscovery::class, [R::GET]],
213 '/smilies[/json]' => [Module\Smilies::class, [R::GET]],
214 '/statistics.json' => [Module\Statistics::class, [R::GET]],
215 '/starred/{item:\d+}' => [Module\Starred::class, [R::GET]],
216 '/toggle_mobile' => [Module\ToggleMobile::class, [R::GET]],
217 '/tos' => [Module\Tos::class, [R::GET]],
218 '/view/theme/{theme}/style.pcss' => [Module\Theme::class, [R::GET]],
219 '/viewsrc/{item:\d+}' => [Module\Debug\ItemBody::class, [R::GET]],
220 '/webfinger' => [Module\Debug\WebFinger::class, [R::GET]],
221 '/xrd' => [Module\Xrd::class, [R::GET]],