]> git.mxchange.org Git - friendica.git/blobdiff - static/routes.config.php
Add POST follow request Mastodon API endpoint
[friendica.git] / static / routes.config.php
index 824354690d5972675d846f328fd67cf77f705dbb..d23b092169448363f105692e04f0838557d10f79 100644 (file)
@@ -30,6 +30,7 @@ return [
        '/api' => [
                '/v1' => [
                        '/follow_requests'                   => [Module\Api\Mastodon\FollowRequests::class, [R::GET         ]],
+                       '/follow_requests/{id:\d+}/{action}' => [Module\Api\Mastodon\FollowRequests::class, [        R::POST]],
                        '/instance'                          => [Module\Api\Mastodon\Instance::class, [R::GET]],
                        '/instance/peers'                    => [Module\Api\Mastodon\Instance\Peers::class, [R::GET]],
                ],