'/api' => [
'/v1' => [
+ '/custom_emojis' => [Module\Api\Mastodon\CustomEmojis::class, [R::GET ]],
'/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]],
+ '/instance' => [Module\Api\Mastodon\Instance::class, [R::GET ]],
+ '/instance/peers' => [Module\Api\Mastodon\Instance\Peers::class, [R::GET ]],
],
],
'/hovercard' => [Module\Contact\Hovercard::class, [R::GET]],
],
- '/credits' => [Module\Credits::class, [R::GET]],
+ '/credits' => [Module\Credits::class, [R::GET]],
+ '/crepair/{contact:\d+}' => [Module\Contact\Repair::class, [R::GET, R::POST]],
+
'/delegation'=> [Module\Delegation::class, [R::GET, R::POST]],
'/dirfind' => [Module\Search\Directory::class, [R::GET]],
'/directory' => [Module\Directory::class, [R::GET]],
'/nodeinfo/{version}' => [Module\NodeInfo::class, [R::GET]],
'/nogroup' => [Module\Group::class, [R::GET]],
+ '/noscrape' => [
+ '/{nick}' => [Module\NoScrape::class, [R::GET]],
+ '/{profile}/view' => [Module\NoScrape::class, [R::GET]],
+ ],
+
'/notifications' => [
'/network[/json]' => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
'/system[/json]' => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
],
'/notification' => [
- '[/]' => [Module\Notifications\Notification::class, [R::GET]],
- '/view/{id:\d+}' => [Module\Notifications\Notification::class, [R::GET]],
- '/mark/all' => [Module\Notifications\Notification::class, [R::GET]],
+ '[/]' => [Module\Notifications\Notification::class, [R::GET]],
+ '/mark/all' => [Module\Notifications\Notification::class, [R::GET]],
+ '/{id:\d+}' => [Module\Notifications\Notification::class, [R::GET, R::POST]],
],
'/objects/{guid}' => [Module\Objects::class, [R::GET]],
'/profile' => [
'/{nickname}' => [Module\Profile\Index::class, [R::GET]],
+ '/{nickname}/profile' => [Module\Profile\Profile::class, [R::GET]],
'/{nickname}/contacts[/{type}]' => [Module\Profile\Contacts::class, [R::GET]],
'/{nickname}/status[/{category}[/{date1}[/{date2}]]]' => [Module\Profile\Status::class, [R::GET]],
],