]> git.mxchange.org Git - friendica.git/blobdiff - static/routes.config.php
Merge pull request #12628 from nupplaphil/bug/typeerror
[friendica.git] / static / routes.config.php
index 8d1fec6f0e2c39508e4fc062ae58cd16ebe02f33..ad8cff51915ccc10b824be9a7555c4176e8a7b0e 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -35,9 +35,10 @@ $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::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]],
@@ -92,6 +93,8 @@ $apiRoutes = [
                '/group_delete[.{extension:json|xml|rss|atom}]'            => [Module\Api\Friendica\Group\Delete::class,           [        R::POST]],
                '/group_update[.{extension:json|xml|rss|atom}]'            => [Module\Api\Friendica\Group\Update::class,           [        R::POST]],
                '/profile/show[.{extension:json|xml|rss|atom}]'            => [Module\Api\Friendica\Profile\Show::class,           [R::GET         ]],
+               '/photoalbums[.{extension:json|xml|rss|atom}]'             => [Module\Api\Friendica\Photoalbum\Index::class,       [R::GET         ]],
+               '/photoalbum[.{extension:json|xml|rss|atom}]'              => [Module\Api\Friendica\Photoalbum\Show::class,        [R::GET         ]],
                '/photoalbum/delete[.{extension:json|xml|rss|atom}]'       => [Module\Api\Friendica\Photoalbum\Delete::class,      [        R::POST]],
                '/photoalbum/update[.{extension:json|xml|rss|atom}]'       => [Module\Api\Friendica\Photoalbum\Update::class,      [        R::POST]],
                '/photos/list[.{extension:json|xml|rss|atom}]'             => [Module\Api\Friendica\Photo\Lists::class,            [R::GET         ]],
@@ -317,6 +320,8 @@ return [
                '/proofs'                                => [Module\Api\Mastodon\Proofs::class,        [R::GET         ]], // Dummy, not supported
        ],
 
+       '/about[/more]'                              => [Module\About::class, [R::GET]],
+
        '/admin'               => [
                '[/]' => [Module\Admin\Summary::class, [R::GET]],
 
@@ -416,13 +421,8 @@ return [
 
        '/featured/{nickname}'      => [Module\ActivityPub\Featured::class, [R::GET]],
 
-       '/feed'     => [
-               '/{nickname}'          => [Module\Feed::class, [R::GET]],
-               '/{nickname}/posts'    => [Module\Feed::class, [R::GET]],
-               '/{nickname}/comments' => [Module\Feed::class, [R::GET]],
-               '/{nickname}/replies'  => [Module\Feed::class, [R::GET]],
-               '/{nickname}/activity' => [Module\Feed::class, [R::GET]],
-       ],
+       '/feed/{nickname}[/{type:posts|comments|replies|activity}]' => [Module\Feed::class, [R::GET]],
+
        '/feedtest' => [Module\Debug\Feed::class, [R::GET]],
 
        '/fetch'             => [