]> git.mxchange.org Git - friendica.git/blobdiff - static/routes.config.php
Merge pull request #12836 from damianwajer/post-interactions
[friendica.git] / static / routes.config.php
index bc10fdac07a41e532a398b1f8edab4421d53156e..0ff13224c61412619c916c9581b5c5552bab46ef 100644 (file)
@@ -31,17 +31,17 @@ use Friendica\App\Router as R;
 use Friendica\Module;
 
 $profileRoutes = [
-       ''                                         => [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]],
-       '/status[/{category}[/{date1}[/{date2}]]]' => [Module\Profile\Status::class,       [R::GET]],
-       '/unkmail'                                 => [Module\Profile\UnkMail::class,      [R::GET, R::POST]],
+       ''                                                => [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]],
 ];
 
 $apiRoutes = [
@@ -80,6 +80,9 @@ $apiRoutes = [
        '/friendica' => [
                '/activity/{verb:attendmaybe|attendno|attendyes|dislike|like|unattendmaybe|unattendno|unattendyes|undislike|unlike}[.{extension:json|xml|rss|atom}]'
                        => [Module\Api\Friendica\Activity::class, [        R::POST]],
+               '/statuses/{id:\d+}/dislike'                               => [Module\Api\Friendica\Statuses\Dislike::class,       [        R::POST]],
+               '/statuses/{id:\d+}/disliked_by'                           => [Module\Api\Friendica\Statuses\DislikedBy::class,    [R::GET         ]],
+               '/statuses/{id:\d+}/undislike'                             => [Module\Api\Friendica\Statuses\Undislike::class,     [        R::POST]],
                '/notification/seen[.{extension:json|xml|rss|atom}]'       => [Module\Api\Friendica\Notification\Seen::class,      [        R::POST]],
                '/notification[.{extension:json|xml|rss|atom}]'            => [Module\Api\Friendica\Notification::class,           [R::GET         ]],
                '/notifications[.{extension:json|xml|rss|atom}]'           => [Module\Api\Friendica\Notification::class,           [R::GET         ]],
@@ -156,6 +159,7 @@ $apiRoutes = [
                '/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         ]],
        ],
+       '/whoami'                                                      => [Module\ActivityPub\Whoami::class, [R::GET         ]],
 ];
 
 return [
@@ -306,7 +310,7 @@ return [
                        '/trends/tags'                       => [Module\Api\Mastodon\Trends\Tags::class,              [R::GET         ]],
                ],
                '/v2' => [
-                       '/instance'                          => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not supported
+                       '/instance'                          => [Module\Api\Mastodon\InstanceV2::class,            [R::GET         ]], // not supported
                ],
                '/v{version:\d+}' => [
                        '/admin/accounts'                    => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not supported
@@ -546,7 +550,7 @@ return [
                '/h2b'    => [Module\Oembed::class, [R::GET]],
                '/{hash}' => [Module\Oembed::class, [R::GET]],
        ],
-       '/outbox/{nickname}' => [Module\ActivityPub\Outbox::class, [R::GET]],
+       '/outbox/{nickname}' => [Module\ActivityPub\Outbox::class, [R::GET, R::POST]],
        '/owa'               => [Module\Owa::class,                [R::GET]],
        '/openid'            => [Module\Security\OpenID::class,    [R::GET]],
        '/opensearch'        => [Module\OpenSearch::class,         [R::GET]],