]> git.mxchange.org Git - friendica.git/blobdiff - static/routes.config.php
Move mod/crepair to src/Module/Contact/Repair
[friendica.git] / static / routes.config.php
index daa16293765b4f84af23c1dbb3453fef1005cb8d..73b74284682b60b012b3a89605322563569bfd0b 100644 (file)
@@ -29,10 +29,11 @@ return [
 
        '/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         ]],
                ],
        ],
 
@@ -102,7 +103,9 @@ return [
                '/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]],
@@ -167,6 +170,11 @@ return [
        '/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]],
@@ -178,9 +186,9 @@ return [
        ],
 
        '/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]],
 
@@ -206,6 +214,7 @@ return [
 
        '/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]],
        ],