]> git.mxchange.org Git - friendica.git/blobdiff - static/routes.config.php
Merge pull request #12280 from MrPetovan/bug/11804-delete-notifications-item
[friendica.git] / static / routes.config.php
index 9adc8ec1dd7bfce13868a0a9af601c5f30486b16..ae575571177ddedf24972d8be38259d94f70a920 100644 (file)
@@ -36,6 +36,7 @@ $profileRoutes = [
        '/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\Index::class,      [R::GET         ]],
        '/photos/upload'                           => [Module\Profile\Photos\Upload::class,     [        R::POST]],
        '/profile'                                 => [Module\Profile\Profile::class,           [R::GET]],
        '/remote_follow'                           => [Module\Profile\RemoteFollow::class,      [R::GET, R::POST]],
@@ -276,7 +277,7 @@ return [
                        '/statuses/{id:\d+}/pin'             => [Module\Api\Mastodon\Statuses\Pin::class,             [        R::POST]],
                        '/statuses/{id:\d+}/unpin'           => [Module\Api\Mastodon\Statuses\Unpin::class,           [        R::POST]],
                        '/statuses/{id:\d+}/history'         => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
-                       '/statuses/{id:\d+}/source'          => [Module\Api\Mastodon\Unimplemented::class,            [R::GET         ]], // not implemented
+                       '/statuses/{id:\d+}/source'          => [Module\Api\Mastodon\Statuses\Source::class,          [R::GET         ]],
                        '/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
@@ -553,6 +554,10 @@ return [
                '/{type}/{customsize:\d+}/{nickname_ext}'                  => [Module\Photo::class, [R::GET]],
        ],
 
+       // Kept for backwards-compatibility
+       // @TODO remove by version 2023.12
+       '/photos/{nickname}' => [Module\Profile\Photos\Index::class, [R::GET]],
+
        '/ping'              => [Module\Notifications\Ping::class, [R::GET]],
 
        '/post' => [