Add Mastodon Instance V2 API endpoint /api/v2/instance

This commit is contained in:
Hank Grabowski 2023-02-20 07:51:20 -05:00
parent 8101739edd
commit 0451f2dfa1
12 changed files with 564 additions and 1 deletions

View file

@ -307,7 +307,7 @@ return [
'/trends/tags' => [Module\Api\Mastodon\Trends\Tags::class, [R::GET ]],
],
'/v2' => [
'/instance' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported
'/instance' => [Module\Api\Mastodon\InstanceV2::class, [R::GET ]], // not supported
],
'/v{version:\d+}' => [
'/admin/accounts' => [Module\Api\Mastodon\Unimplemented::class, [R::GET ]], // not supported