Add POST follow request Mastodon API endpoint

This commit is contained in:
Hypolite Petovan 2019-12-11 03:50:09 -05:00
parent 1625330e70
commit 2d47952921
3 changed files with 44 additions and 4 deletions

View 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]],
],