]> 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 ca1f9bf2f31b0734e7d3e1a2a3085db083a9c5d4..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,10 +170,25 @@ return [
        '/nodeinfo/{version}' => [Module\NodeInfo::class,        [R::GET]],
        '/nogroup'            => [Module\Group::class,           [R::GET]],
 
-       '/notify'         => [
-               '[/]'            => [Module\Notifications\Notify::class, [R::GET]],
-               '/view/{id:\d+}' => [Module\Notifications\Notify::class, [R::GET]],
-               '/mark/all'      => [Module\Notifications\Notify::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]],
+               '/personal[/json]'   => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
+               '/home[/json]'       => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
+               '/intros[/json]'     => [Module\Notifications\Introductions::class, [R::GET, R::POST]],
+               '/intros/all[/json]' => [Module\Notifications\Introductions::class, [R::GET, R::POST]],
+               '/intros/{contact:\d+}[/json]' => [Module\Notifications\Introductions::class, [R::GET, R::POST]],
+       ],
+
+       '/notification'         => [
+               '[/]'       => [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]],
 
@@ -196,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]],
        ],