2019-09-26 21:18:01 +02:00
|
|
|
<?php
|
2020-02-09 16:34:23 +01:00
|
|
|
/**
|
2023-01-01 15:36:24 +01:00
|
|
|
* @copyright Copyright (C) 2010-2023, the Friendica project
|
2020-02-09 16:34:23 +01:00
|
|
|
*
|
|
|
|
* @license GNU AGPL version 3 or any later version
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
* Configuration for the default routes in Friendica
|
|
|
|
*
|
|
|
|
* The syntax is either
|
|
|
|
* - 'route' => [ Module::class , [ HTTPMethod(s) ] ]
|
|
|
|
* - 'group' => [ 'route' => [ Module::class, [ HTTPMethod(s) ] ]
|
|
|
|
*
|
|
|
|
* It's possible to create recursive groups
|
|
|
|
*
|
|
|
|
*/
|
2019-09-26 21:18:01 +02:00
|
|
|
|
|
|
|
use Friendica\App\Router as R;
|
|
|
|
use Friendica\Module;
|
|
|
|
|
2020-09-09 06:13:11 +02:00
|
|
|
$profileRoutes = [
|
2023-01-08 07:32:18 +01:00
|
|
|
'' => [Module\Profile\Index::class, [R::GET]],
|
|
|
|
'/contacts/common' => [Module\Profile\Common::class, [R::GET]],
|
|
|
|
'/contacts[/{type}]' => [Module\Profile\Contacts::class, [R::GET]],
|
|
|
|
'/media' => [Module\Profile\Media::class, [R::GET]],
|
|
|
|
'/photos' => [Module\Profile\Photos::class, [R::GET, R::POST]],
|
|
|
|
'/profile' => [Module\Profile\Profile::class, [R::GET]],
|
|
|
|
'/remote_follow' => [Module\Profile\RemoteFollow::class, [R::GET, R::POST]],
|
|
|
|
'/restricted' => [Module\Profile\Restricted::class, [R::GET ]],
|
|
|
|
'/schedule' => [Module\Profile\Schedule::class, [R::GET, R::POST]],
|
|
|
|
'/conversations[/{category}[/{date1}[/{date2}]]]' => [Module\Profile\Conversations::class, [R::GET]],
|
|
|
|
'/unkmail' => [Module\Profile\UnkMail::class, [R::GET, R::POST]],
|
2020-09-09 06:13:11 +02:00
|
|
|
];
|
|
|
|
|
2021-11-08 08:23:18 +01:00
|
|
|
$apiRoutes = [
|
|
|
|
'/account' => [
|
2022-01-15 22:38:19 +01:00
|
|
|
'/verify_credentials[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Account\VerifyCredentials::class, [R::GET ]],
|
|
|
|
'/rate_limit_status[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Account\RateLimitStatus::class, [R::GET ]],
|
|
|
|
'/update_profile[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Account\UpdateProfile ::class, [ R::POST]],
|
|
|
|
'/update_profile_image[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Account\UpdateProfileImage::class, [ R::POST]],
|
2021-11-08 08:23:18 +01:00
|
|
|
],
|
|
|
|
|
2021-11-26 22:48:13 +01:00
|
|
|
'/blocks/ids[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Blocks\Ids::class, [R::GET ]],
|
|
|
|
'/blocks/list[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Blocks\Lists::class, [R::GET ]],
|
2021-11-25 07:00:58 +01:00
|
|
|
'/conversation/show[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\Statusnet\Conversation::class, [R::GET ]],
|
2022-03-20 13:06:39 +01:00
|
|
|
'/conversation/show/{id:\d+}[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\Statusnet\Conversation::class, [R::GET ]],
|
2021-11-08 08:23:18 +01:00
|
|
|
'/direct_messages' => [
|
2021-12-16 23:44:50 +01:00
|
|
|
'/all[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\DirectMessages\All::class, [R::GET ]],
|
|
|
|
'/conversation[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\DirectMessages\Conversation::class, [R::GET ]],
|
|
|
|
'/destroy[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\DirectMessages\Destroy::class, [ R::POST]],
|
|
|
|
'/new[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\DirectMessages\NewDM::class, [ R::POST]],
|
|
|
|
'/sent[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\DirectMessages\Sent::class, [R::GET ]],
|
2021-11-08 08:23:18 +01:00
|
|
|
],
|
2021-12-16 23:44:50 +01:00
|
|
|
'/direct_messages[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\DirectMessages\Inbox::class, [R::GET, R::POST]],
|
2021-11-08 08:23:18 +01:00
|
|
|
|
2021-11-25 07:00:58 +01:00
|
|
|
'/externalprofile/show[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Users\Show::class, [R::GET ]],
|
2021-11-27 10:42:05 +01:00
|
|
|
'/favorites/create[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Favorites\Create::class, [ R::POST]],
|
|
|
|
'/favorites/destroy[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Favorites\Destroy::class, [ R::POST]],
|
2021-11-25 07:00:58 +01:00
|
|
|
'/favorites[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Favorites::class, [R::GET ]],
|
|
|
|
'/followers/ids[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Followers\Ids::class, [R::GET ]],
|
|
|
|
'/followers/list[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Followers\Lists::class, [R::GET ]],
|
|
|
|
'/friends/ids[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Friends\Ids::class, [R::GET ]],
|
|
|
|
'/friends/list[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Friends\Lists::class, [R::GET ]],
|
2021-11-27 10:42:05 +01:00
|
|
|
'/friendships/destroy[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Friendships\Destroy::class, [ R::POST]],
|
2021-11-26 22:48:13 +01:00
|
|
|
'/friendships/incoming[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Friendships\Incoming::class, [R::GET ]],
|
2021-11-29 07:09:28 +01:00
|
|
|
'/friendships/show[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Friendships\Show::class, [R::GET ]],
|
2021-11-08 08:23:18 +01:00
|
|
|
|
|
|
|
'/friendica' => [
|
2021-11-11 00:07:46 +01:00
|
|
|
'/activity/{verb:attendmaybe|attendno|attendyes|dislike|like|unattendmaybe|unattendno|unattendyes|undislike|unlike}[.{extension:json|xml|rss|atom}]'
|
|
|
|
=> [Module\Api\Friendica\Activity::class, [ R::POST]],
|
2023-02-20 21:33:36 +01:00
|
|
|
'/statuses/{id:\d+}/dislike' => [Module\Api\Friendica\Statuses\Dislike::class, [ R::POST]],
|
2023-02-20 21:51:17 +01:00
|
|
|
'/statuses/{id:\d+}/disliked_by' => [Module\Api\Friendica\Statuses\DislikedBy::class, [R::GET ]],
|
2023-02-20 21:33:36 +01:00
|
|
|
'/statuses/{id:\d+}/undislike' => [Module\Api\Friendica\Statuses\Undislike::class, [ R::POST]],
|
2021-11-25 12:16:47 +01:00
|
|
|
'/notification/seen[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Notification\Seen::class, [ R::POST]],
|
2021-11-12 20:57:44 +01:00
|
|
|
'/notification[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Notification::class, [R::GET ]],
|
2022-02-25 20:16:40 +01:00
|
|
|
'/notifications[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Notification::class, [R::GET ]],
|
2021-11-12 20:57:44 +01:00
|
|
|
'/direct_messages_setseen[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\DirectMessages\Setseen::class, [ R::POST]],
|
2021-12-16 23:44:50 +01:00
|
|
|
'/direct_messages_search[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\DirectMessages\Search ::class, [R::GET ]],
|
2021-11-12 20:57:44 +01:00
|
|
|
'/events[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Events\Index::class, [R::GET ]],
|
2023-05-14 01:54:35 +02:00
|
|
|
'/event_create[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Events\Create::class, [ R::POST]],
|
|
|
|
'/event_delete[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Events\Delete::class, [ R::POST]],
|
|
|
|
'/circle_show[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Circle\Show::class, [R::GET ]],
|
|
|
|
'/circle_create[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Circle\Create::class, [ R::POST]],
|
|
|
|
'/circle_delete[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Circle\Delete::class, [ R::POST]],
|
|
|
|
'/circle_update[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Circle\Update::class, [ R::POST]],
|
|
|
|
|
|
|
|
// Backward compatibility
|
|
|
|
// @deprecated
|
|
|
|
'/group_show[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Circle\Show::class, [R::GET ]],
|
|
|
|
'/group_create[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Circle\Create::class, [ R::POST]],
|
|
|
|
'/group_delete[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Circle\Delete::class, [ R::POST]],
|
|
|
|
'/group_update[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Circle\Update::class, [ R::POST]],
|
|
|
|
|
2021-11-12 20:57:44 +01:00
|
|
|
'/profile/show[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Profile\Show::class, [R::GET ]],
|
2022-12-13 19:28:34 +01:00
|
|
|
'/photoalbums[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Photoalbum\Index::class, [R::GET ]],
|
2022-12-13 20:16:08 +01:00
|
|
|
'/photoalbum[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Photoalbum\Show::class, [R::GET ]],
|
2021-11-27 10:42:05 +01:00
|
|
|
'/photoalbum/delete[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Photoalbum\Delete::class, [ R::POST]],
|
2021-11-12 20:57:44 +01:00
|
|
|
'/photoalbum/update[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Photoalbum\Update::class, [ R::POST]],
|
2022-01-15 22:38:19 +01:00
|
|
|
'/photos/list[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Photo\Lists::class, [R::GET ]],
|
|
|
|
'/photo/create[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Photo\Create::class, [ R::POST]],
|
2021-11-27 10:42:05 +01:00
|
|
|
'/photo/delete[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Photo\Delete::class, [ R::POST]],
|
2022-01-15 22:38:19 +01:00
|
|
|
'/photo/update[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Photo\Update::class, [ R::POST]],
|
|
|
|
'/photo[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Photo::class, [R::GET ]],
|
2021-11-08 11:31:18 +01:00
|
|
|
],
|
2021-11-08 08:23:18 +01:00
|
|
|
|
2021-11-12 20:57:44 +01:00
|
|
|
'/gnusocial/config[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\GNUSocial\Config::class, [R::GET ]],
|
2021-11-10 08:31:39 +01:00
|
|
|
'/gnusocial/version[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\GNUSocial\Version::class, [R::GET ]],
|
|
|
|
'/help/test[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\Help\Test::class, [R::GET ]],
|
2021-11-08 08:23:18 +01:00
|
|
|
|
|
|
|
'/lists' => [
|
2022-01-15 22:38:19 +01:00
|
|
|
'/create[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Lists\Create::class, [ R::POST]],
|
|
|
|
'/destroy[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Lists\Destroy::class, [ R::POST]],
|
|
|
|
'/list[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Lists\Lists::class, [R::GET ]],
|
|
|
|
'/ownerships[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Lists\Ownership::class, [R::GET ]],
|
|
|
|
'/statuses[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Lists\Statuses::class, [R::GET ]],
|
|
|
|
'/subscriptions[.{extension:json|xml|rss|atom}]' => [Module\Api\Friendica\Lists\Lists::class, [R::GET ]],
|
|
|
|
'/update[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Lists\Update::class, [ R::POST]],
|
2021-11-08 08:23:18 +01:00
|
|
|
],
|
|
|
|
|
2021-11-27 10:42:05 +01:00
|
|
|
'/media/upload[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Media\Upload::class, [ R::POST]],
|
|
|
|
'/media/metadata/create[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Media\Metadata\Create::class, [ R::POST]],
|
2021-11-25 07:00:58 +01:00
|
|
|
'/saved_searches/list[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\SavedSearches::class, [R::GET ]],
|
2021-11-25 12:16:47 +01:00
|
|
|
'/search/tweets[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Search\Tweets::class, [R::GET ]],
|
|
|
|
'/search[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Search\Tweets::class, [R::GET ]],
|
2021-11-25 07:00:58 +01:00
|
|
|
'/statusnet/config[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\GNUSocial\Config::class, [R::GET ]],
|
2021-11-25 07:06:57 +01:00
|
|
|
'/statusnet/conversation[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\Statusnet\Conversation::class, [R::GET ]],
|
2021-11-25 07:00:58 +01:00
|
|
|
'/statusnet/conversation/{id:\d+}[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\Statusnet\Conversation::class, [R::GET ]],
|
|
|
|
'/statusnet/version[.{extension:json|xml|rss|atom}]' => [Module\Api\GNUSocial\GNUSocial\Version::class, [R::GET ]],
|
2021-11-08 08:23:18 +01:00
|
|
|
|
|
|
|
'/statuses' => [
|
2021-11-28 14:34:00 +01:00
|
|
|
'/destroy[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Destroy::class, [ R::POST]],
|
2022-01-08 21:53:19 +01:00
|
|
|
'/destroy/{id:\d+}[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Destroy::class, [ R::POST]],
|
2021-11-26 22:48:13 +01:00
|
|
|
'/followers[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Followers\Lists::class, [R::GET ]],
|
|
|
|
'/friends[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Friends\Lists::class, [R::GET ]],
|
2021-11-25 00:03:34 +01:00
|
|
|
'/friends_timeline[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\HomeTimeline::class, [R::GET ]],
|
|
|
|
'/home_timeline[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\HomeTimeline::class, [R::GET ]],
|
2021-11-28 14:34:00 +01:00
|
|
|
'/mediap[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Update::class, [ R::POST]],
|
2021-11-25 00:03:34 +01:00
|
|
|
'/mentions[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Mentions::class, [R::GET ]],
|
|
|
|
'/mentions_timeline[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Mentions::class, [R::GET ]],
|
|
|
|
'/networkpublic_timeline[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\NetworkPublicTimeline::class, [R::GET ]],
|
|
|
|
'/public_timeline[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\PublicTimeline::class, [R::GET ]],
|
|
|
|
'/replies[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Mentions::class, [R::GET ]],
|
2021-11-28 14:34:00 +01:00
|
|
|
'/retweet[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Retweet::class, [ R::POST]],
|
2022-01-08 21:53:19 +01:00
|
|
|
'/retweet/{id:\d+}[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Retweet::class, [ R::POST]],
|
2021-11-25 07:06:57 +01:00
|
|
|
'/show[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Show::class, [R::GET ]],
|
|
|
|
'/show/{id:\d+}[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Show::class, [R::GET ]],
|
2021-11-28 14:34:00 +01:00
|
|
|
'/update[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Update::class, [ R::POST]],
|
|
|
|
'/update_with_media[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\Update::class, [ R::POST]],
|
2021-11-25 00:03:34 +01:00
|
|
|
'/user_timeline[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Statuses\UserTimeline::class, [R::GET ]],
|
2021-11-08 08:23:18 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
'/users' => [
|
2021-11-25 07:00:58 +01:00
|
|
|
'/lookup[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Users\Lookup::class, [R::GET ]],
|
|
|
|
'/search[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Users\Search::class, [R::GET ]],
|
|
|
|
'/show[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Users\Show::class, [R::GET ]],
|
|
|
|
'/show/{id:\d+}[.{extension:json|xml|rss|atom}]' => [Module\Api\Twitter\Users\Show::class, [R::GET ]],
|
2021-11-08 08:23:18 +01:00
|
|
|
],
|
2023-01-29 15:41:14 +01:00
|
|
|
'/whoami' => [Module\ActivityPub\Whoami::class, [R::GET ]],
|
2021-11-08 08:23:18 +01:00
|
|
|
];
|
|
|
|
|
2019-09-26 21:18:01 +02:00
|
|
|
return [
|
|
|
|
'/' => [Module\Home::class, [R::GET]],
|
|
|
|
|
|
|
|
'/.well-known' => [
|
|
|
|
'/host-meta' => [Module\WellKnown\HostMeta::class, [R::GET]],
|
2019-11-28 08:07:34 +01:00
|
|
|
'/nodeinfo' => [Module\WellKnown\NodeInfo::class, [R::GET]],
|
2021-03-10 15:58:48 +01:00
|
|
|
'/security.txt' => [Module\WellKnown\SecurityTxt::class, [R::GET]],
|
2019-09-26 21:18:01 +02:00
|
|
|
'/webfinger' => [Module\Xrd::class, [R::GET]],
|
2020-07-13 11:45:45 +02:00
|
|
|
'/x-nodeinfo2' => [Module\NodeInfo210::class, [R::GET]],
|
2019-09-26 21:18:01 +02:00
|
|
|
'/x-social-relay' => [Module\WellKnown\XSocialRelay::class, [R::GET]],
|
|
|
|
],
|
|
|
|
|
|
|
|
'/2fa' => [
|
2019-12-27 22:19:28 +01:00
|
|
|
'[/]' => [Module\Security\TwoFactor\Verify::class, [R::GET, R::POST]],
|
|
|
|
'/recovery' => [Module\Security\TwoFactor\Recovery::class, [R::GET, R::POST]],
|
2022-06-25 14:45:33 +02:00
|
|
|
'/trust' => [Module\Security\TwoFactor\Trust::class, [R::GET, R::POST]],
|
2022-06-26 10:13:32 +02:00
|
|
|
'/signout' => [Module\Security\TwoFactor\SignOut::class, [R::GET, R::POST]],
|
2019-09-26 21:18:01 +02:00
|
|
|
],
|
|
|
|
|
2019-12-05 14:16:13 +01:00
|
|
|
'/api' => [
|
2021-11-08 08:23:18 +01:00
|
|
|
'' => $apiRoutes,
|
|
|
|
'/1.1' => $apiRoutes,
|
2019-12-05 14:16:13 +01:00
|
|
|
'/v1' => [
|
2021-05-13 23:15:32 +02:00
|
|
|
'/accounts' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
|
2020-10-31 23:32:26 +01:00
|
|
|
'/accounts/{id:\d+}' => [Module\Api\Mastodon\Accounts::class, [R::GET ]],
|
|
|
|
'/accounts/{id:\d+}/statuses' => [Module\Api\Mastodon\Accounts\Statuses::class, [R::GET ]],
|
2021-07-21 07:22:56 +02:00
|
|
|
'/accounts/{id:\d+}/featured_tags' => [Module\Api\Mastodon\Accounts\FeaturedTags::class, [R::GET ]], // Dummy, not supported
|
2021-05-08 13:46:24 +02:00
|
|
|
'/accounts/{id:\d+}/followers' => [Module\Api\Mastodon\Accounts\Followers::class, [R::GET ]],
|
2021-05-08 21:21:52 +02:00
|
|
|
'/accounts/{id:\d+}/following' => [Module\Api\Mastodon\Accounts\Following::class, [R::GET ]],
|
2021-05-09 11:35:51 +02:00
|
|
|
'/accounts/{id:\d+}/lists' => [Module\Api\Mastodon\Accounts\Lists::class, [R::GET ]],
|
2021-05-13 23:15:32 +02:00
|
|
|
'/accounts/{id:\d+}/identity_proofs' => [Module\Api\Mastodon\Accounts\IdentityProofs::class, [R::GET ]], // Dummy, not supported
|
2021-05-14 23:51:32 +02:00
|
|
|
'/accounts/{id:\d+}/follow' => [Module\Api\Mastodon\Accounts\Follow::class, [ R::POST]],
|
|
|
|
'/accounts/{id:\d+}/unfollow' => [Module\Api\Mastodon\Accounts\Unfollow::class, [ R::POST]],
|
|
|
|
'/accounts/{id:\d+}/block' => [Module\Api\Mastodon\Accounts\Block::class, [ R::POST]],
|
|
|
|
'/accounts/{id:\d+}/unblock' => [Module\Api\Mastodon\Accounts\Unblock::class, [ R::POST]],
|
|
|
|
'/accounts/{id:\d+}/mute' => [Module\Api\Mastodon\Accounts\Mute::class, [ R::POST]],
|
|
|
|
'/accounts/{id:\d+}/unmute' => [Module\Api\Mastodon\Accounts\Unmute::class, [ R::POST]],
|
2021-05-13 23:15:32 +02:00
|
|
|
'/accounts/{id:\d+}/pin' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
|
|
|
|
'/accounts/{id:\d+}/unpin' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
|
2021-05-15 17:02:15 +02:00
|
|
|
'/accounts/{id:\d+}/note' => [Module\Api\Mastodon\Accounts\Note::class, [ R::POST]],
|
2022-04-21 21:58:56 +02:00
|
|
|
'/accounts/{id:\d+}/remove_from_followers' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
|
|
|
|
'/accounts/familiar_followers' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
|
|
|
|
'/accounts/lookup' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
|
2021-05-15 12:55:41 +02:00
|
|
|
'/accounts/relationships' => [Module\Api\Mastodon\Accounts\Relationships::class, [R::GET ]],
|
2021-05-09 11:35:51 +02:00
|
|
|
'/accounts/search' => [Module\Api\Mastodon\Accounts\Search::class, [R::GET ]],
|
2021-05-15 14:13:03 +02:00
|
|
|
'/accounts/update_credentials' => [Module\Api\Mastodon\Accounts\UpdateCredentials::class, [R::PATCH ]],
|
2021-05-15 17:02:15 +02:00
|
|
|
'/accounts/verify_credentials' => [Module\Api\Mastodon\Accounts\VerifyCredentials::class, [R::GET ]],
|
2021-06-03 06:47:02 +02:00
|
|
|
'/accounts/{name}' => [Module\Api\Mastodon\Accounts::class, [R::GET ]],
|
2021-05-13 23:15:32 +02:00
|
|
|
'/admin/accounts/{id:\d+}' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
|
|
|
|
'/admin/accounts/{id:\d+}/{action}' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
|
2022-04-21 21:58:56 +02:00
|
|
|
'/admin/dimensions' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
|
|
|
|
'/admin/measures' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
|
|
|
|
'/admin/retention' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
|
|
|
|
'/admin/trends/links' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
|
|
|
|
'/admin/trends/statuses' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
|
|
|
|
'/admin/trends/tags' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
|
2021-05-13 23:15:32 +02:00
|
|
|
'/admin/reports' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
|
|
|
|
'/admin/reports/{id:\d+}' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
|
|
|
|
'/admin/reports/{id:\d+}/{action}' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
|
|
|
|
'/announcements' => [Module\Api\Mastodon\Announcements::class, [R::GET ]], // Dummy, not supported
|
|
|
|
'/announcements/{id:\d+}/dismiss' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
|
|
|
|
'/announcements/{id:\d+}/reactions/{name}' => [Module\Api\Mastodon\Unimplemented::class, [R::PUT, R::DELETE]], // not supported
|
2021-05-10 00:23:21 +02:00
|
|
|
'/apps' => [Module\Api\Mastodon\Apps::class, [ R::POST]],
|
2021-05-19 11:35:08 +02:00
|
|
|
'/apps/verify_credentials' => [Module\Api\Mastodon\Apps\VerifyCredentials::class, [R::GET ]],
|
2021-05-08 21:21:52 +02:00
|
|
|
'/blocks' => [Module\Api\Mastodon\Blocks::class, [R::GET ]],
|
|
|
|
'/bookmarks' => [Module\Api\Mastodon\Bookmarks::class, [R::GET ]],
|
2021-05-21 20:00:03 +02:00
|
|
|
'/conversations' => [Module\Api\Mastodon\Conversations::class, [R::GET ]],
|
|
|
|
'/conversations/{id:\d+}' => [Module\Api\Mastodon\Conversations::class, [R::DELETE ]],
|
|
|
|
'/conversations/{id:\d+}/read' => [Module\Api\Mastodon\Conversations\Read::class, [R::POST ]],
|
2020-09-03 20:57:18 +02:00
|
|
|
'/custom_emojis' => [Module\Api\Mastodon\CustomEmojis::class, [R::GET ]],
|
2021-05-13 23:15:32 +02:00
|
|
|
'/domain_blocks' => [Module\Api\Mastodon\Unimplemented::class, [R::GET, R::POST, R::DELETE]], // not supported
|
2020-09-03 20:57:18 +02:00
|
|
|
'/directory' => [Module\Api\Mastodon\Directory::class, [R::GET ]],
|
2022-04-21 21:58:56 +02:00
|
|
|
'/emails/confirmations' => [Module\Api\Mastodon\Unimplemented::class, [R::POST ]], // not supported
|
2021-05-13 23:15:32 +02:00
|
|
|
'/endorsements' => [Module\Api\Mastodon\Endorsements::class, [R::GET ]], // Dummy, not supported
|
2021-05-08 21:21:52 +02:00
|
|
|
'/favourites' => [Module\Api\Mastodon\Favourited::class, [R::GET ]],
|
2021-05-13 23:15:32 +02:00
|
|
|
'/featured_tags' => [Module\Api\Mastodon\Unimplemented::class, [R::GET, R::POST]], // not supported
|
|
|
|
'/featured_tags/{id:\d+}' => [Module\Api\Mastodon\Unimplemented::class, [R::DELETE ]], // not supported
|
|
|
|
'/featured_tags/suggestions' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
|
|
|
|
'/filters/{id:\d+}' => [Module\Api\Mastodon\Unimplemented::class, [R::GET, R::POST, R::PUT, R::DELETE]], // not supported
|
2020-09-03 20:57:18 +02:00
|
|
|
'/follow_requests' => [Module\Api\Mastodon\FollowRequests::class, [R::GET ]],
|
|
|
|
'/follow_requests/{id:\d+}/{action}' => [Module\Api\Mastodon\FollowRequests::class, [ R::POST]],
|
2022-11-28 04:29:43 +01:00
|
|
|
'/followed_tags' => [Module\Api\Mastodon\FollowedTags::class, [R::GET ]],
|
2020-09-03 20:57:18 +02:00
|
|
|
'/instance' => [Module\Api\Mastodon\Instance::class, [R::GET ]],
|
2021-05-08 21:21:52 +02:00
|
|
|
'/instance/activity' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // @todo
|
2022-11-29 19:45:30 +01:00
|
|
|
'/instance/domain_blocks' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // @todo
|
|
|
|
'/instance/extended_description' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // @todo
|
2020-09-03 20:57:18 +02:00
|
|
|
'/instance/peers' => [Module\Api\Mastodon\Instance\Peers::class, [R::GET ]],
|
2022-06-07 19:34:19 +02:00
|
|
|
'/instance/rules' => [Module\Api\Mastodon\Instance\Rules::class, [R::GET ]],
|
2021-05-09 11:35:51 +02:00
|
|
|
'/lists' => [Module\Api\Mastodon\Lists::class, [R::GET, R::POST]],
|
|
|
|
'/lists/{id:\d+}' => [Module\Api\Mastodon\Lists::class, [R::GET, R::PUT, R::DELETE]],
|
|
|
|
'/lists/{id:\d+}/accounts' => [Module\Api\Mastodon\Lists\Accounts::class, [R::GET, R::POST, R::DELETE]],
|
2022-06-06 23:38:59 +02:00
|
|
|
'/markers' => [Module\Api\Mastodon\Markers::class, [R::GET, R::POST]],
|
2021-05-13 23:15:32 +02:00
|
|
|
'/media/{id:\d+}' => [Module\Api\Mastodon\Media::class, [R::GET, R::PUT ]],
|
2021-05-08 21:21:52 +02:00
|
|
|
'/mutes' => [Module\Api\Mastodon\Mutes::class, [R::GET ]],
|
2021-05-09 13:50:05 +02:00
|
|
|
'/notifications' => [Module\Api\Mastodon\Notifications::class, [R::GET ]],
|
|
|
|
'/notifications/{id:\d+}' => [Module\Api\Mastodon\Notifications::class, [R::GET ]],
|
2021-05-15 12:08:47 +02:00
|
|
|
'/notifications/clear' => [Module\Api\Mastodon\Notifications\Clear::class, [ R::POST]],
|
|
|
|
'/notifications/{id:\d+}/dismiss' => [Module\Api\Mastodon\Notifications\Dismiss::class, [ R::POST]],
|
2022-06-07 19:34:19 +02:00
|
|
|
'/polls/{id:\d+}' => [Module\Api\Mastodon\Polls::class, [R::GET ]],
|
2021-05-13 23:15:32 +02:00
|
|
|
'/polls/{id:\d+}/votes' => [Module\Api\Mastodon\Unimplemented::class, [ R::POST]], // not supported
|
2021-05-09 11:35:51 +02:00
|
|
|
'/preferences' => [Module\Api\Mastodon\Preferences::class, [R::GET ]],
|
2021-08-15 02:30:41 +02:00
|
|
|
'/push/subscription' => [Module\Api\Mastodon\PushSubscription::class, [R::GET, R::POST, R::PUT, R::DELETE]],
|
2022-11-13 02:00:02 +01:00
|
|
|
'/reports' => [Module\Api\Mastodon\Reports::class, [ R::POST]],
|
2021-07-31 00:43:11 +02:00
|
|
|
'/scheduled_statuses' => [Module\Api\Mastodon\ScheduledStatuses::class, [R::GET ]],
|
2021-07-29 12:34:31 +02:00
|
|
|
'/scheduled_statuses/{id:\d+}' => [Module\Api\Mastodon\ScheduledStatuses::class, [R::GET, R::PUT, R::DELETE]],
|
2021-05-13 23:15:32 +02:00
|
|
|
'/statuses' => [Module\Api\Mastodon\Statuses::class, [ R::POST]],
|
2022-04-21 21:58:56 +02:00
|
|
|
'/statuses/{id:\d+}' => [Module\Api\Mastodon\Statuses::class, [R::GET, R::PUT, R::DELETE]],
|
2021-07-20 22:48:37 +02:00
|
|
|
'/statuses/{id:\d+}/card' => [Module\Api\Mastodon\Statuses\Card::class, [R::GET ]],
|
2021-05-08 21:21:52 +02:00
|
|
|
'/statuses/{id:\d+}/context' => [Module\Api\Mastodon\Statuses\Context::class, [R::GET ]],
|
|
|
|
'/statuses/{id:\d+}/reblogged_by' => [Module\Api\Mastodon\Statuses\RebloggedBy::class, [R::GET ]],
|
|
|
|
'/statuses/{id:\d+}/favourited_by' => [Module\Api\Mastodon\Statuses\FavouritedBy::class, [R::GET ]],
|
2021-05-15 12:08:47 +02:00
|
|
|
'/statuses/{id:\d+}/favourite' => [Module\Api\Mastodon\Statuses\Favourite::class, [ R::POST]],
|
|
|
|
'/statuses/{id:\d+}/unfavourite' => [Module\Api\Mastodon\Statuses\Unfavourite::class, [ R::POST]],
|
|
|
|
'/statuses/{id:\d+}/reblog' => [Module\Api\Mastodon\Statuses\Reblog::class, [ R::POST]],
|
|
|
|
'/statuses/{id:\d+}/unreblog' => [Module\Api\Mastodon\Statuses\Unreblog::class, [ R::POST]],
|
|
|
|
'/statuses/{id:\d+}/bookmark' => [Module\Api\Mastodon\Statuses\Bookmark::class, [ R::POST]],
|
|
|
|
'/statuses/{id:\d+}/unbookmark' => [Module\Api\Mastodon\Statuses\Unbookmark::class, [ R::POST]],
|
|
|
|
'/statuses/{id:\d+}/mute' => [Module\Api\Mastodon\Statuses\Mute::class, [ R::POST]],
|
|
|
|
'/statuses/{id:\d+}/unmute' => [Module\Api\Mastodon\Statuses\Unmute::class, [ R::POST]],
|
|
|
|
'/statuses/{id:\d+}/pin' => [Module\Api\Mastodon\Statuses\Pin::class, [ R::POST]],
|
|
|
|
'/statuses/{id:\d+}/unpin' => [Module\Api\Mastodon\Statuses\Unpin::class, [ R::POST]],
|
2022-04-21 21:58:56 +02:00
|
|
|
'/statuses/{id:\d+}/history' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
|
2022-11-25 20:35:40 +01:00
|
|
|
'/statuses/{id:\d+}/source' => [Module\Api\Mastodon\Statuses\Source::class, [R::GET ]],
|
2022-04-21 21:58:56 +02:00
|
|
|
'/streaming/direct' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
|
|
|
|
'/streaming/hashtag' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
|
|
|
|
'/streaming/hashtag/local' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
|
|
|
|
'/streaming/health' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
|
|
|
|
'/streaming/list' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
|
|
|
|
'/streaming/public' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
|
|
|
|
'/streaming/public/local' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
|
|
|
|
'/streaming/public/remote' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
|
|
|
|
'/streaming/user' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
|
|
|
|
'/streaming/user/notification' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not implemented
|
2021-05-08 22:22:08 +02:00
|
|
|
'/suggestions/{id:\d+}' => [Module\Api\Mastodon\Unimplemented::class, [R::DELETE ]], // not implemented
|
2022-11-27 20:22:41 +01:00
|
|
|
'/tags/{hashtag}' => [Module\Api\Mastodon\Tags::class, [R::GET ]],
|
|
|
|
'/tags/{hashtag}/follow' => [Module\Api\Mastodon\Tags\Follow::class, [ R::POST]],
|
|
|
|
'/tags/{hashtag}/unfollow' => [Module\Api\Mastodon\Tags\Unfollow::class, [ R::POST]],
|
2021-05-20 06:39:45 +02:00
|
|
|
'/timelines/direct' => [Module\Api\Mastodon\Timelines\Direct::class, [R::GET ]],
|
2021-05-07 23:28:48 +02:00
|
|
|
'/timelines/home' => [Module\Api\Mastodon\Timelines\Home::class, [R::GET ]],
|
2021-05-08 04:21:01 +02:00
|
|
|
'/timelines/list/{id:\d+}' => [Module\Api\Mastodon\Timelines\ListTimeline::class, [R::GET ]],
|
2020-09-03 20:57:18 +02:00
|
|
|
'/timelines/public' => [Module\Api\Mastodon\Timelines\PublicTimeline::class, [R::GET ]],
|
2021-05-07 23:28:48 +02:00
|
|
|
'/timelines/tag/{hashtag}' => [Module\Api\Mastodon\Timelines\Tag::class, [R::GET ]],
|
2022-11-28 10:30:41 +01:00
|
|
|
'/trends' => [Module\Api\Mastodon\Trends\Tags::class, [R::GET ]],
|
2022-11-28 21:19:57 +01:00
|
|
|
'/trends/links' => [Module\Api\Mastodon\Trends\Links::class, [R::GET ]],
|
2022-11-28 10:30:41 +01:00
|
|
|
'/trends/statuses' => [Module\Api\Mastodon\Trends\Statuses::class, [R::GET ]],
|
|
|
|
'/trends/tags' => [Module\Api\Mastodon\Trends\Tags::class, [R::GET ]],
|
2020-01-23 15:08:37 +01:00
|
|
|
],
|
2022-11-29 19:45:30 +01:00
|
|
|
'/v2' => [
|
2023-02-20 13:51:20 +01:00
|
|
|
'/instance' => [Module\Api\Mastodon\InstanceV2::class, [R::GET ]], // not supported
|
2022-11-29 19:45:30 +01:00
|
|
|
],
|
2021-07-20 22:48:37 +02:00
|
|
|
'/v{version:\d+}' => [
|
2022-04-21 21:58:56 +02:00
|
|
|
'/admin/accounts' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
|
2022-11-27 20:22:41 +01:00
|
|
|
'/filters' => [Module\Api\Mastodon\Filters::class, [R::GET ]], // Dummy, not supported
|
2022-03-30 22:33:46 +02:00
|
|
|
'/media' => [Module\Api\Mastodon\Media::class, [ R::POST]],
|
2021-05-18 00:22:51 +02:00
|
|
|
'/search' => [Module\Api\Mastodon\Search::class, [R::GET ]],
|
2022-04-21 21:58:56 +02:00
|
|
|
'/suggestions' => [Module\Api\Mastodon\Suggestions::class, [R::GET ]],
|
2020-11-26 08:02:31 +01:00
|
|
|
],
|
2021-06-03 06:47:02 +02:00
|
|
|
'/meta' => [Module\Api\Mastodon\Unimplemented::class, [R::POST ]], // not supported
|
2021-05-13 23:15:32 +02:00
|
|
|
'/oembed' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]],
|
|
|
|
'/proofs' => [Module\Api\Mastodon\Proofs::class, [R::GET ]], // Dummy, not supported
|
2019-12-05 14:16:13 +01:00
|
|
|
],
|
|
|
|
|
2022-12-12 12:24:20 +01:00
|
|
|
'/about[/more]' => [Module\About::class, [R::GET]],
|
|
|
|
|
2019-09-26 21:18:01 +02:00
|
|
|
'/admin' => [
|
|
|
|
'[/]' => [Module\Admin\Summary::class, [R::GET]],
|
|
|
|
|
|
|
|
'/addons' => [Module\Admin\Addons\Index::class, [R::GET, R::POST]],
|
|
|
|
'/addons/{addon}' => [Module\Admin\Addons\Details::class, [R::GET, R::POST]],
|
|
|
|
|
2020-09-08 16:38:35 +02:00
|
|
|
'/dbsync[/{action}[/{update:\d+}]]' => [Module\Admin\DBSync::class, [R::GET]],
|
2019-09-26 21:18:01 +02:00
|
|
|
|
|
|
|
'/features' => [Module\Admin\Features::class, [R::GET, R::POST]],
|
|
|
|
'/federation' => [Module\Admin\Federation::class, [R::GET]],
|
|
|
|
|
|
|
|
'/logs/view' => [Module\Admin\Logs\View::class, [R::GET]],
|
|
|
|
'/logs' => [Module\Admin\Logs\Settings::class, [R::GET, R::POST]],
|
|
|
|
|
|
|
|
'/phpinfo' => [Module\Admin\PhpInfo::class, [R::GET]],
|
|
|
|
|
2020-09-08 16:38:35 +02:00
|
|
|
'/queue[/{status}]' => [Module\Admin\Queue::class, [R::GET]],
|
2019-09-26 21:18:01 +02:00
|
|
|
|
|
|
|
'/site' => [Module\Admin\Site::class, [R::GET, R::POST]],
|
|
|
|
|
2021-07-20 23:33:35 +02:00
|
|
|
'/storage' => [Module\Admin\Storage::class, [R::GET, R::POST]],
|
|
|
|
'/storage/{name}' => [Module\Admin\Storage::class, [ R::POST]],
|
2021-07-18 22:09:11 +02:00
|
|
|
|
2019-09-26 21:18:01 +02:00
|
|
|
'/themes' => [Module\Admin\Themes\Index::class, [R::GET, R::POST]],
|
|
|
|
'/themes/{theme}' => [Module\Admin\Themes\Details::class, [R::GET, R::POST]],
|
|
|
|
'/themes/{theme}/embed' => [Module\Admin\Themes\Embed::class, [R::GET, R::POST]],
|
|
|
|
|
|
|
|
'/tos' => [Module\Admin\Tos::class, [R::GET, R::POST]],
|
|
|
|
],
|
|
|
|
'/amcd' => [Module\AccountManagementControlDocument::class, [R::GET]],
|
|
|
|
'/acctlink' => [Module\Acctlink::class, [R::GET]],
|
|
|
|
'/apps' => [Module\Apps::class, [R::GET]],
|
|
|
|
'/attach/{item:\d+}' => [Module\Attach::class, [R::GET]],
|
2022-11-20 01:55:01 +01:00
|
|
|
|
|
|
|
// Mastodon route used by Fedifind to follow people who set their Webfinger address in their Twitter bio
|
|
|
|
'/authorize_interaction' => [Module\Contact\Follow::class, [R::GET, R::POST]],
|
|
|
|
|
2019-10-04 04:41:11 +02:00
|
|
|
'/babel' => [Module\Debug\Babel::class, [R::GET, R::POST]],
|
2020-07-20 06:39:17 +02:00
|
|
|
'/debug/ap' => [Module\Debug\ActivityPubConversion::class, [R::GET, R::POST]],
|
2022-07-27 17:54:50 +02:00
|
|
|
|
|
|
|
'/blocklist/domain/download' => [Module\Blocklist\Domain\Download::class, [R::GET]],
|
|
|
|
|
2019-09-26 21:18:01 +02:00
|
|
|
'/bookmarklet' => [Module\Bookmarklet::class, [R::GET]],
|
2020-02-16 10:38:56 +01:00
|
|
|
|
2022-11-06 02:35:09 +01:00
|
|
|
'/calendar' => [
|
|
|
|
'[/]' => [Module\Calendar\Show::class, [R::GET ]],
|
|
|
|
'/show/{nickname}' => [Module\Calendar\Show::class, [R::GET ]],
|
|
|
|
'/export/{nickname}[/{format:csv|ical}]' => [Module\Calendar\Export::class, [R::GET ]],
|
|
|
|
'/api/{action:ignore|unignore|delete}/{id:\d+}' => [Module\Calendar\Event\API::class, [R::GET ]],
|
|
|
|
'/api/{action:create}' => [Module\Calendar\Event\API::class, [ R::POST]],
|
|
|
|
'/api/get[/{nickname}]' => [Module\Calendar\Event\Get::class, [R::GET ]],
|
|
|
|
'/event/show/{id:\d+}' => [Module\Calendar\Event\Show::class, [R::GET ]],
|
|
|
|
'/event/show/{nickname}/{id:\d+}' => [Module\Calendar\Event\Show::class, [R::GET ]],
|
|
|
|
'/event/{mode:new}' => [Module\Calendar\Event\Form::class, [R::GET ]],
|
|
|
|
'/event/{mode:edit|copy}/{id:\d+}' => [Module\Calendar\Event\Form::class, [R::GET ]],
|
|
|
|
],
|
2022-11-02 08:59:46 +01:00
|
|
|
|
2020-10-14 04:30:40 +02:00
|
|
|
'/community[/{content}]' => [Module\Conversation\Community::class, [R::GET]],
|
2020-02-16 10:38:56 +01:00
|
|
|
|
2019-09-26 21:18:01 +02:00
|
|
|
'/compose[/{type}]' => [Module\Item\Compose::class, [R::GET, R::POST]],
|
|
|
|
|
|
|
|
'/contact' => [
|
2022-11-09 22:36:02 +01:00
|
|
|
'[/]' => [Module\Contact::class, [R::GET]],
|
|
|
|
'/{id:\d+}[/]' => [Module\Contact\Profile::class, [R::GET, R::POST]],
|
2023-01-08 18:40:05 +01:00
|
|
|
'/{id:\d+}/{action:block|ignore|collapse|update|updateprofile}'
|
2022-11-09 22:36:02 +01:00
|
|
|
=> [Module\Contact\Profile::class, [R::GET]],
|
|
|
|
'/{id:\d+}/advanced' => [Module\Contact\Advanced::class, [R::GET, R::POST]],
|
|
|
|
'/{id:\d+}/conversations' => [Module\Contact\Conversations::class, [R::GET]],
|
|
|
|
'/{id:\d+}/contacts[/{type}]' => [Module\Contact\Contacts::class, [R::GET]],
|
|
|
|
'/{id:\d+}/media' => [Module\Contact\Media::class, [R::GET]],
|
|
|
|
'/{id:\d+}/posts' => [Module\Contact\Posts::class, [R::GET]],
|
|
|
|
'/{id:\d+}/revoke' => [Module\Contact\Revoke::class, [R::GET, R::POST]],
|
|
|
|
'/archived' => [Module\Contact::class, [R::GET]],
|
|
|
|
'/batch' => [Module\Contact::class, [R::GET, R::POST]],
|
|
|
|
'/blocked' => [Module\Contact::class, [R::GET]],
|
|
|
|
'/follow' => [Module\Contact\Follow::class, [R::GET, R::POST]],
|
|
|
|
'/hidden' => [Module\Contact::class, [R::GET]],
|
|
|
|
'/hovercard' => [Module\Contact\Hovercard::class, [R::GET]],
|
|
|
|
'/ignored' => [Module\Contact::class, [R::GET]],
|
2023-01-08 19:28:19 +01:00
|
|
|
'/collapsed' => [Module\Contact::class, [R::GET]],
|
2022-11-09 22:36:02 +01:00
|
|
|
'/match' => [Module\Contact\MatchInterests::class, [R::GET]],
|
|
|
|
'/pending' => [Module\Contact::class, [R::GET]],
|
|
|
|
'/redir/{id:\d+}' => [Module\Contact\Redir::class, [R::GET]],
|
|
|
|
'/suggestions' => [Module\Contact\Suggestions::class, [R::GET]],
|
|
|
|
'/unfollow' => [Module\Contact\Unfollow::class, [R::GET, R::POST]],
|
2019-09-26 21:18:01 +02:00
|
|
|
],
|
2019-10-17 03:21:49 +02:00
|
|
|
|
2021-07-16 16:45:29 +02:00
|
|
|
'/credits' => [Module\Credits::class, [R::GET]],
|
|
|
|
'/delegation' => [Module\Delegation::class, [R::GET, R::POST]],
|
|
|
|
'/dfrn_notify[/{nickname}]' => [Module\DFRN\Notify::class, [R::POST]],
|
|
|
|
'/dfrn_poll/{nickname}' => [Module\DFRN\Poll::class, [R::GET]],
|
|
|
|
'/dirfind' => [Module\Search\Directory::class, [R::GET]],
|
|
|
|
'/directory' => [Module\Directory::class, [R::GET]],
|
2019-09-26 21:18:01 +02:00
|
|
|
|
2022-11-15 00:52:38 +01:00
|
|
|
'/display/{guid}' => [Module\Item\Display::class, [R::GET]],
|
|
|
|
'/display/feed-item/{uri-id}[.atom]' => [Module\Item\Feed::class, [R::GET]],
|
|
|
|
'/display/feed-item/{uri-id}/{mode:conversation}[.atom]' => [Module\Item\Feed::class, [R::GET]],
|
2022-11-14 21:56:41 +01:00
|
|
|
|
2022-04-08 23:25:31 +02:00
|
|
|
'/featured/{nickname}' => [Module\ActivityPub\Featured::class, [R::GET]],
|
2021-10-03 19:29:28 +02:00
|
|
|
|
2022-11-30 19:50:52 +01:00
|
|
|
'/feed/{nickname}[/{type:posts|comments|replies|activity}]' => [Module\Feed::class, [R::GET]],
|
|
|
|
|
2019-09-26 21:18:01 +02:00
|
|
|
'/feedtest' => [Module\Debug\Feed::class, [R::GET]],
|
|
|
|
|
|
|
|
'/fetch' => [
|
|
|
|
'/post/{guid}' => [Module\Diaspora\Fetch::class, [R::GET]],
|
|
|
|
'/status_message/{guid}' => [Module\Diaspora\Fetch::class, [R::GET]],
|
|
|
|
'/reshare/{guid}' => [Module\Diaspora\Fetch::class, [R::GET]],
|
|
|
|
],
|
2021-07-17 22:28:46 +02:00
|
|
|
'/filed' => [Module\Search\Filed::class, [R::GET]],
|
|
|
|
'/filer[/{id:\d+}]' => [Module\Filer\SaveTag::class, [R::GET]],
|
2022-09-05 07:02:38 +02:00
|
|
|
'/filerm/{id:\d+}' => [Module\Filer\RemoveTag::class, [R::GET, R::POST]],
|
2021-07-17 22:28:46 +02:00
|
|
|
'/follow_confirm' => [Module\FollowConfirm::class, [R::GET, R::POST]],
|
|
|
|
'/followers/{nickname}' => [Module\ActivityPub\Followers::class, [R::GET]],
|
|
|
|
'/following/{nickname}' => [Module\ActivityPub\Following::class, [R::GET]],
|
|
|
|
'/friendica[/json]' => [Module\Friendica::class, [R::GET]],
|
|
|
|
'/friendica/inbox' => [Module\ActivityPub\Inbox::class, [R::GET, R::POST]],
|
2019-09-26 21:18:01 +02:00
|
|
|
|
2020-02-01 00:22:56 +01:00
|
|
|
'/fsuggest/{contact:\d+}' => [Module\FriendSuggest::class, [R::GET, R::POST]],
|
2019-09-26 21:18:01 +02:00
|
|
|
|
2023-05-14 01:54:35 +02:00
|
|
|
'/circle' => [
|
|
|
|
'[/]' => [Module\Circle::class, [R::GET, R::POST]],
|
|
|
|
'/{circle:\d+}' => [Module\Circle::class, [R::GET, R::POST]],
|
|
|
|
'/none' => [Module\Circle::class, [R::GET, R::POST]],
|
|
|
|
'/new' => [Module\Circle::class, [R::GET, R::POST]],
|
|
|
|
'/drop/{circle:\d+}' => [Module\Circle::class, [R::GET, R::POST]],
|
|
|
|
'/{circle:\d+}/{contact:\d+}' => [Module\Circle::class, [R::GET, R::POST]],
|
|
|
|
'/{circle:\d+}/{command:add|remove}/{contact:\d+}' => [Module\Circle::class, [R::GET, R::POST]],
|
2019-09-26 21:18:01 +02:00
|
|
|
],
|
2021-07-17 22:28:46 +02:00
|
|
|
'/hashtag' => [Module\Hashtag::class, [R::GET]],
|
|
|
|
'/help[/{doc:.+}]' => [Module\Help::class, [R::GET]],
|
|
|
|
'/home' => [Module\Home::class, [R::GET]],
|
2021-07-23 14:38:29 +02:00
|
|
|
'/hcard/{profile}[/{action}]' => [Module\HCard::class, [R::GET]],
|
2021-07-17 22:28:46 +02:00
|
|
|
'/inbox[/{nickname}]' => [Module\ActivityPub\Inbox::class, [R::GET, R::POST]],
|
|
|
|
'/invite' => [Module\Invite::class, [R::GET, R::POST]],
|
2019-09-26 21:18:01 +02:00
|
|
|
|
|
|
|
'/install' => [
|
|
|
|
'[/]' => [Module\Install::class, [R::GET, R::POST]],
|
|
|
|
'/testrewrite' => [Module\Install::class, [R::GET]],
|
|
|
|
],
|
2019-10-24 17:32:03 +02:00
|
|
|
|
2021-01-30 21:34:58 +01:00
|
|
|
'/item/{id:\d+}' => [
|
|
|
|
'/activity/{verb}' => [Module\Item\Activity::class, [ R::POST]],
|
|
|
|
'/follow' => [Module\Item\Follow::class, [ R::POST]],
|
|
|
|
'/ignore' => [Module\Item\Ignore::class, [ R::POST]],
|
|
|
|
'/pin' => [Module\Item\Pin::class, [ R::POST]],
|
|
|
|
'/star' => [Module\Item\Star::class, [ R::POST]],
|
2019-10-24 17:32:03 +02:00
|
|
|
],
|
|
|
|
|
2019-11-27 08:25:54 +01:00
|
|
|
'/localtime' => [Module\Debug\Localtime::class, [R::GET, R::POST]],
|
2019-12-27 22:19:28 +01:00
|
|
|
'/login' => [Module\Security\Login::class, [R::GET, R::POST]],
|
|
|
|
'/logout' => [Module\Security\Logout::class, [R::GET, R::POST]],
|
2019-11-27 08:25:54 +01:00
|
|
|
'/magic' => [Module\Magic::class, [R::GET]],
|
|
|
|
'/manifest' => [Module\Manifest::class, [R::GET]],
|
2021-01-25 06:04:56 +01:00
|
|
|
'/friendica.webmanifest' => [Module\Manifest::class, [R::GET]],
|
2022-11-27 00:28:29 +01:00
|
|
|
|
|
|
|
'/media' => [
|
2022-11-27 01:25:59 +01:00
|
|
|
'/attachment/browser' => [Module\Media\Attachment\Browser::class, [R::GET]],
|
|
|
|
'/attachment/upload' => [Module\Media\Attachment\Upload::class, [ R::POST]],
|
|
|
|
'/photo/browser[/{album}]' => [Module\Media\Photo\Browser::class, [R::GET]],
|
|
|
|
'/photo/upload' => [Module\Media\Photo\Upload::class, [ R::POST]],
|
2022-11-27 00:28:29 +01:00
|
|
|
],
|
|
|
|
|
2022-11-06 02:01:06 +01:00
|
|
|
'/moderation' => [
|
|
|
|
'[/]' => [Module\Moderation\Summary::class, [R::GET]],
|
|
|
|
|
|
|
|
'/blocklist/contact' => [Module\Moderation\Blocklist\Contact::class, [R::GET, R::POST]],
|
|
|
|
'/blocklist/server' => [Module\Moderation\Blocklist\Server\Index::class, [R::GET, R::POST]],
|
|
|
|
'/blocklist/server/add' => [Module\Moderation\Blocklist\Server\Add::class, [R::GET, R::POST]],
|
|
|
|
'/blocklist/server/import' => [Module\Moderation\Blocklist\Server\Import::class, [R::GET, R::POST]],
|
|
|
|
|
|
|
|
'/item/delete' => [Module\Moderation\Item\Delete::class, [R::GET, R::POST]],
|
|
|
|
'/item/source[/{guid}]' => [Module\Moderation\Item\Source::class, [R::GET, R::POST]],
|
|
|
|
|
|
|
|
'/users[/{action}/{uid}]' => [Module\Moderation\Users\Index::class, [R::GET, R::POST]],
|
|
|
|
'/users/active[/{action}/{uid}]' => [Module\Moderation\Users\Active::class, [R::GET, R::POST]],
|
|
|
|
'/users/pending[/{action}/{uid}]' => [Module\Moderation\Users\Pending::class, [R::GET, R::POST]],
|
|
|
|
'/users/blocked[/{action}/{uid}]' => [Module\Moderation\Users\Blocked::class, [R::GET, R::POST]],
|
|
|
|
'/users/deleted' => [Module\Moderation\Users\Deleted::class, [R::GET ]],
|
|
|
|
'/users/create' => [Module\Moderation\Users\Create::class, [R::GET, R::POST]],
|
|
|
|
],
|
2019-11-27 08:25:54 +01:00
|
|
|
'/modexp/{nick}' => [Module\PublicRSAKey::class, [R::GET]],
|
|
|
|
'/newmember' => [Module\Welcome::class, [R::GET]],
|
2020-07-13 11:45:45 +02:00
|
|
|
'/nodeinfo/1.0' => [Module\NodeInfo110::class, [R::GET]],
|
|
|
|
'/nodeinfo/2.0' => [Module\NodeInfo120::class, [R::GET]],
|
2023-05-14 01:54:35 +02:00
|
|
|
'/nocircle' => [Module\Circle::class, [R::GET]],
|
2020-01-26 23:43:47 +01:00
|
|
|
|
|
|
|
'/noscrape' => [
|
|
|
|
'/{nick}' => [Module\NoScrape::class, [R::GET]],
|
|
|
|
'/{profile}/view' => [Module\NoScrape::class, [R::GET]],
|
|
|
|
],
|
2019-09-26 21:18:01 +02:00
|
|
|
|
2020-01-22 23:18:14 +01:00
|
|
|
'/notifications' => [
|
|
|
|
'/network[/json]' => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
|
|
|
|
'/system[/json]' => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
|
|
|
|
'/personal[/json]' => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
|
|
|
|
'/home[/json]' => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
|
|
|
|
'/intros[/json]' => [Module\Notifications\Introductions::class, [R::GET, R::POST]],
|
|
|
|
'/intros/all[/json]' => [Module\Notifications\Introductions::class, [R::GET, R::POST]],
|
2020-01-23 00:31:22 +01:00
|
|
|
'/intros/{contact:\d+}[/json]' => [Module\Notifications\Introductions::class, [R::GET, R::POST]],
|
2020-01-22 23:18:14 +01:00
|
|
|
],
|
|
|
|
|
2020-01-24 18:32:38 +01:00
|
|
|
'/notification' => [
|
2020-01-28 23:21:24 +01:00
|
|
|
'[/]' => [Module\Notifications\Notification::class, [R::GET]],
|
|
|
|
'/mark/all' => [Module\Notifications\Notification::class, [R::GET]],
|
|
|
|
'/{id:\d+}' => [Module\Notifications\Notification::class, [R::GET, R::POST]],
|
2019-09-26 21:18:01 +02:00
|
|
|
],
|
2021-05-12 08:50:27 +02:00
|
|
|
|
2022-03-03 15:07:37 +01:00
|
|
|
'/notify/{notify_id:\d+}' => [Module\Notifications\Notification::class, [R::GET]],
|
|
|
|
|
2021-05-12 08:50:27 +02:00
|
|
|
'/oauth' => [
|
|
|
|
'/acknowledge' => [Module\OAuth\Acknowledge::class, [R::GET, R::POST]],
|
|
|
|
'/authorize' => [Module\OAuth\Authorize::class, [R::GET]],
|
|
|
|
'/revoke' => [Module\OAuth\Revoke::class, [R::POST]],
|
|
|
|
'/token' => [Module\OAuth\Token::class, [R::POST]],
|
|
|
|
],
|
|
|
|
|
2021-07-20 01:14:16 +02:00
|
|
|
'/objects/{guid}[/{activity}]' => [Module\ActivityPub\Objects::class, [R::GET]],
|
2019-09-26 21:18:01 +02:00
|
|
|
|
|
|
|
'/oembed' => [
|
|
|
|
'/b2h' => [Module\Oembed::class, [R::GET]],
|
|
|
|
'/h2b' => [Module\Oembed::class, [R::GET]],
|
|
|
|
'/{hash}' => [Module\Oembed::class, [R::GET]],
|
|
|
|
],
|
2023-02-12 15:18:03 +01:00
|
|
|
'/outbox/{nickname}' => [Module\ActivityPub\Outbox::class, [R::GET, R::POST]],
|
2021-07-17 22:28:46 +02:00
|
|
|
'/owa' => [Module\Owa::class, [R::GET]],
|
|
|
|
'/openid' => [Module\Security\OpenID::class, [R::GET]],
|
|
|
|
'/opensearch' => [Module\OpenSearch::class, [R::GET]],
|
2019-09-26 21:18:01 +02:00
|
|
|
|
2021-02-16 16:20:51 +01:00
|
|
|
'/parseurl' => [Module\ParseUrl::class, [R::GET]],
|
2020-07-27 00:35:02 +02:00
|
|
|
'/permission/tooltip/{type}/{id:\d+}' => [Module\PermissionTooltip::class, [R::GET]],
|
|
|
|
|
2019-09-26 21:18:01 +02:00
|
|
|
'/photo' => [
|
2023-01-07 16:11:34 +01:00
|
|
|
'/{size:thumb_small|scaled_full}_{name}' => [Module\Photo::class, [R::GET]],
|
2021-10-04 20:04:41 +02:00
|
|
|
'/{name}' => [Module\Photo::class, [R::GET]],
|
|
|
|
'/{type}/{id:\d+}' => [Module\Photo::class, [R::GET]],
|
2021-11-19 06:59:24 +01:00
|
|
|
'/{type:contact|header}/{guid}' => [Module\Photo::class, [R::GET]],
|
2021-10-03 00:42:14 +02:00
|
|
|
// User Id Fallback, to remove after version 2021.12
|
2021-10-04 20:04:41 +02:00
|
|
|
'/{type}/{uid_ext:\d+\..*}' => [Module\Photo::class, [R::GET]],
|
|
|
|
'/{type}/{nickname_ext}' => [Module\Photo::class, [R::GET]],
|
|
|
|
// Contact Id Fallback, to remove after version 2021.12
|
|
|
|
'/{type:contact|header}/{customsize:\d+}/{contact_id:\d+}' => [Module\Photo::class, [R::GET]],
|
|
|
|
'/{type:contact|header}/{customsize:\d+}/{guid}' => [Module\Photo::class, [R::GET]],
|
|
|
|
'/{type}/{customsize:\d+}/{id:\d+}' => [Module\Photo::class, [R::GET]],
|
2021-10-03 00:42:14 +02:00
|
|
|
// User Id Fallback, to remove after version 2021.12
|
2021-10-04 20:04:41 +02:00
|
|
|
'/{type}/{customsize:\d+}/{uid_ext:\d+\..*}' => [Module\Photo::class, [R::GET]],
|
|
|
|
'/{type}/{customsize:\d+}/{nickname_ext}' => [Module\Photo::class, [R::GET]],
|
2019-09-26 21:18:01 +02:00
|
|
|
],
|
|
|
|
|
2022-11-20 23:15:07 +01:00
|
|
|
// Kept for backwards-compatibility
|
|
|
|
// @TODO remove by version 2023.12
|
2022-11-27 01:25:59 +01:00
|
|
|
'/photos/{nickname}' => [Module\Profile\Photos::class, [R::GET]],
|
2022-11-20 23:15:07 +01:00
|
|
|
|
2022-03-04 15:01:56 +01:00
|
|
|
'/ping' => [Module\Notifications\Ping::class, [R::GET]],
|
2022-11-02 04:42:20 +01:00
|
|
|
|
|
|
|
'/post' => [
|
2022-11-15 22:26:52 +01:00
|
|
|
'/{post_id}/edit' => [Module\Post\Edit::class, [R::GET ]],
|
2022-11-04 18:01:25 +01:00
|
|
|
'/{post_id}/share' => [Module\Post\Share::class, [R::GET ]],
|
2022-11-04 03:26:48 +01:00
|
|
|
'/{item_id}/tag/add' => [Module\Post\Tag\Add::class, [ R::POST]],
|
2022-11-02 04:42:20 +01:00
|
|
|
'/{item_id}/tag/remove[/{tag_name}]' => [Module\Post\Tag\Remove::class, [R::GET, R::POST]],
|
|
|
|
],
|
|
|
|
|
2019-11-07 06:39:15 +01:00
|
|
|
'/pretheme' => [Module\ThemeDetails::class, [R::GET]],
|
|
|
|
'/probe' => [Module\Debug\Probe::class, [R::GET]],
|
2019-09-26 21:18:01 +02:00
|
|
|
|
2020-09-09 06:13:11 +02:00
|
|
|
'/profile/{nickname}' => $profileRoutes,
|
|
|
|
'/u/{nickname}' => $profileRoutes,
|
|
|
|
'/~{nickname}' => $profileRoutes,
|
2019-09-26 21:18:01 +02:00
|
|
|
|
|
|
|
'/proxy' => [
|
|
|
|
'[/]' => [Module\Proxy::class, [R::GET]],
|
|
|
|
'/{url}' => [Module\Proxy::class, [R::GET]],
|
|
|
|
'/{sub1}/{url}' => [Module\Proxy::class, [R::GET]],
|
|
|
|
'/{sub1}/{sub2}/{url}' => [Module\Proxy::class, [R::GET]],
|
|
|
|
],
|
|
|
|
|
2022-11-11 06:39:26 +01:00
|
|
|
// OStatus stack modules
|
2023-01-08 10:41:54 +01:00
|
|
|
'/ostatus/repair' => [Module\OStatus\Repair::class, [R::GET ]],
|
|
|
|
'/ostatus/subscribe' => [Module\OStatus\Subscribe::class, [R::GET ]],
|
|
|
|
'/poco' => [Module\User\PortableContacts::class, [R::GET ]],
|
|
|
|
'/pubsub' => [Module\OStatus\PubSub::class, [R::GET, R::POST]],
|
|
|
|
'/pubsub/{nickname}[/{cid:\d+}]' => [Module\OStatus\PubSub::class, [R::GET, R::POST]],
|
|
|
|
'/pubsubhubbub[/{nickname}]' => [Module\OStatus\PubSubHubBub::class, [ R::POST]],
|
|
|
|
'/salmon[/{nickname}]' => [Module\OStatus\Salmon::class, [ R::POST]],
|
2022-11-07 02:39:52 +01:00
|
|
|
|
2019-10-04 04:40:42 +02:00
|
|
|
'/search' => [
|
2022-11-09 22:13:02 +01:00
|
|
|
'[/]' => [Module\Search\Index::class, [R::GET ]],
|
2019-10-07 20:13:31 +02:00
|
|
|
'/acl' => [Module\Search\Acl::class, [R::GET, R::POST]],
|
2022-11-09 22:13:02 +01:00
|
|
|
'/saved/add' => [Module\Search\Saved::class, [R::GET ]],
|
|
|
|
'/saved/remove' => [Module\Search\Saved::class, [R::GET ]],
|
|
|
|
'/user/tags' => [Module\Search\Tags::class, [ R::POST]],
|
2019-10-04 04:40:42 +02:00
|
|
|
],
|
|
|
|
|
2019-10-20 13:00:08 +02:00
|
|
|
'/receive' => [
|
2021-10-26 17:42:49 +02:00
|
|
|
'/{type:public}' => [Module\Diaspora\Receive::class, [ R::POST]],
|
|
|
|
'/{type:users}/{guid}' => [Module\Diaspora\Receive::class, [ R::POST]],
|
2019-10-20 13:00:08 +02:00
|
|
|
],
|
|
|
|
|
2022-08-01 17:42:10 +02:00
|
|
|
'/security' => [
|
|
|
|
'/password_too_long' => [Module\Security\PasswordTooLong::class, [R::GET, R::POST]],
|
|
|
|
],
|
|
|
|
|
2019-09-26 21:18:01 +02:00
|
|
|
'/settings' => [
|
2022-04-24 07:21:15 +02:00
|
|
|
'[/]' => [Module\Settings\Account::class, [R::GET, R::POST]],
|
|
|
|
'/account' => [
|
|
|
|
'[/]' => [Module\Settings\Account::class, [R::GET, R::POST]],
|
|
|
|
'/{open}' => [Module\Settings\Account::class, [R::GET, R::POST]],
|
|
|
|
],
|
2022-11-05 04:47:42 +01:00
|
|
|
'/addons[/{addon}]' => [Module\Settings\Addons::class, [R::GET, R::POST]],
|
|
|
|
'/connectors[/{connector}]' => [Module\Settings\Connectors::class, [R::GET, R::POST]],
|
2019-10-10 04:17:09 +02:00
|
|
|
'/delegation[/{action}/{user_id}]' => [Module\Settings\Delegation::class, [R::GET, R::POST]],
|
2022-11-05 03:15:32 +01:00
|
|
|
'/display' => [Module\Settings\Display::class, [R::GET, R::POST]],
|
2022-11-05 04:59:40 +01:00
|
|
|
'/features' => [Module\Settings\Features::class, [R::GET, R::POST]],
|
2022-11-05 03:15:32 +01:00
|
|
|
'/oauth' => [Module\Settings\OAuth::class, [R::GET, R::POST]],
|
2019-10-27 14:56:27 +01:00
|
|
|
'/profile' => [
|
2019-10-27 15:08:14 +01:00
|
|
|
'[/]' => [Module\Settings\Profile\Index::class, [R::GET, R::POST]],
|
2019-10-27 14:56:27 +01:00
|
|
|
'/photo[/new]' => [Module\Settings\Profile\Photo\Index::class, [R::GET, R::POST]],
|
|
|
|
'/photo/crop/{guid}' => [Module\Settings\Profile\Photo\Crop::class, [R::GET, R::POST]],
|
|
|
|
],
|
2022-11-08 05:58:21 +01:00
|
|
|
'/removeme' => [Module\Settings\RemoveMe::class, [R::GET, R::POST]],
|
2022-10-24 23:56:05 +02:00
|
|
|
'/userexport[/{action}]' => [Module\Settings\UserExport::class, [R::GET ]],
|
2022-11-05 04:47:42 +01:00
|
|
|
'/2fa' => [
|
|
|
|
'[/]' => [Module\Settings\TwoFactor\Index::class, [R::GET, R::POST]],
|
|
|
|
'/recovery' => [Module\Settings\TwoFactor\Recovery::class, [R::GET, R::POST]],
|
|
|
|
'/app_specific' => [Module\Settings\TwoFactor\AppSpecific::class, [R::GET, R::POST]],
|
|
|
|
'/verify' => [Module\Settings\TwoFactor\Verify::class, [R::GET, R::POST]],
|
|
|
|
'/trusted' => [Module\Settings\TwoFactor\Trusted::class, [R::GET, R::POST]],
|
|
|
|
],
|
2019-09-26 21:18:01 +02:00
|
|
|
],
|
|
|
|
|
2020-10-13 06:23:17 +02:00
|
|
|
'/network' => [
|
|
|
|
'[/]' => [Module\Conversation\Network::class, [R::GET]],
|
|
|
|
'/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]],
|
|
|
|
'/forum/{contact_id:\d+}' => [Module\Conversation\Network::class, [R::GET]],
|
2023-05-14 01:54:35 +02:00
|
|
|
'/circle/{circle_id:\d+}' => [Module\Conversation\Network::class, [R::GET]],
|
2020-10-13 06:23:17 +02:00
|
|
|
],
|
|
|
|
|
2019-09-26 21:18:01 +02:00
|
|
|
'/randprof' => [Module\RandomProfile::class, [R::GET]],
|
|
|
|
'/register' => [Module\Register::class, [R::GET, R::POST]],
|
|
|
|
'/robots.txt' => [Module\RobotsTxt::class, [R::GET]],
|
|
|
|
'/rsd.xml' => [Module\ReallySimpleDiscovery::class, [R::GET]],
|
|
|
|
'/smilies[/json]' => [Module\Smilies::class, [R::GET]],
|
|
|
|
'/statistics.json' => [Module\Statistics::class, [R::GET]],
|
|
|
|
'/toggle_mobile' => [Module\ToggleMobile::class, [R::GET]],
|
|
|
|
'/tos' => [Module\Tos::class, [R::GET]],
|
2019-10-27 15:08:14 +01:00
|
|
|
|
2020-10-14 04:30:40 +02:00
|
|
|
'/update_community[/{content}]' => [Module\Update\Community::class, [R::GET]],
|
2021-08-06 06:01:26 +02:00
|
|
|
|
2022-11-15 20:11:38 +01:00
|
|
|
'/update_display' => [Module\Update\Display::class, [R::GET]],
|
2022-11-15 00:52:38 +01:00
|
|
|
|
2021-08-06 06:01:26 +02:00
|
|
|
'/update_network' => [
|
|
|
|
'[/]' => [Module\Update\Network::class, [R::GET]],
|
|
|
|
'/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]],
|
|
|
|
'/forum/{contact_id:\d+}' => [Module\Update\Network::class, [R::GET]],
|
2023-05-14 01:54:35 +02:00
|
|
|
'/circle/{circle_id:\d+}' => [Module\Update\Network::class, [R::GET]],
|
2021-08-06 06:01:26 +02:00
|
|
|
],
|
|
|
|
|
2019-10-27 15:08:14 +01:00
|
|
|
'/update_profile' => [Module\Update\Profile::class, [R::GET]],
|
|
|
|
|
2022-10-31 19:42:43 +01:00
|
|
|
'/user/import' => [Module\User\Import::class, [R::GET, R::POST]],
|
|
|
|
|
2019-09-26 21:18:01 +02:00
|
|
|
'/view/theme/{theme}/style.pcss' => [Module\Theme::class, [R::GET]],
|
|
|
|
'/viewsrc/{item:\d+}' => [Module\Debug\ItemBody::class, [R::GET]],
|
|
|
|
'/webfinger' => [Module\Debug\WebFinger::class, [R::GET]],
|
|
|
|
'/xrd' => [Module\Xrd::class, [R::GET]],
|
|
|
|
];
|