]> git.mxchange.org Git - friendica.git/blobdiff - static/routes.config.php
DE translation update THX MarekBenjamin
[friendica.git] / static / routes.config.php
index 794f705e409aa34f4a30c93182d2596631610953..d9e61c63fc1276d06288d3ffad7c3f74927392c5 100644 (file)
@@ -31,20 +31,16 @@ use Friendica\App\Router as R;
 use Friendica\Module;
 
 $profileRoutes = [
-       ''                                         => [Module\Profile\Index::class,              [R::GET]],
-       '/attachment/upload'                       => [Module\Profile\Attachment\Upload::class,  [        R::POST]],
-       '/attachment/browser'                      => [Module\Profile\Attachment\Browser::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\Index::class,       [R::GET         ]],
-       '/photos/browser[/{album}]'                => [Module\Profile\Photos\Browser::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]],
-       '/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         ]],
+       '/profile'                                 => [Module\Profile\Profile::class,      [R::GET]],
+       '/remote_follow'                           => [Module\Profile\RemoteFollow::class, [R::GET, R::POST]],
+       '/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]],
 ];
 
 $apiRoutes = [
@@ -471,6 +467,14 @@ return [
        '/magic'              => [Module\Magic::class,           [R::GET]],
        '/manifest'           => [Module\Manifest::class,        [R::GET]],
        '/friendica.webmanifest'  => [Module\Manifest::class,    [R::GET]],
+
+       '/media' => [
+               '/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]],
+       ],
+
        '/moderation'               => [
                '[/]' => [Module\Moderation\Summary::class, [R::GET]],
 
@@ -558,7 +562,7 @@ return [
 
        // Kept for backwards-compatibility
        // @TODO remove by version 2023.12
-       '/photos/{nickname}' => [Module\Profile\Photos\Index::class, [R::GET]],
+       '/photos/{nickname}' => [Module\Profile\Photos::class, [R::GET]],
 
        '/ping'              => [Module\Notifications\Ping::class, [R::GET]],