]> 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 44502cdfb2c36be95edb00dea4ffc2411e193e81..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]],
@@ -177,10 +185,10 @@ return [
                '/intros/{contact:\d+}[/json]' => [Module\Notifications\Introductions::class, [R::GET, R::POST]],
        ],
 
-       '/notify'         => [
-               '[/]'            => [Module\Notifications\Notify::class, [R::GET]],
-               '/view/{id:\d+}' => [Module\Notifications\Notify::class, [R::GET]],
-               '/mark/all'      => [Module\Notifications\Notify::class, [R::GET]],
+       '/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]],
 
@@ -205,10 +213,10 @@ return [
        '/probe'             => [Module\Debug\Probe::class,  [R::GET]],
 
        '/profile' => [
-               '/{nickname}'                                                 => [Module\Profile::class,          [R::GET]],
-               '/{nickname}/{to:\d{4}-\d{2}-\d{2}}/{from:\d{4}-\d{2}-\d{2}}' => [Module\Profile::class,          [R::GET]],
-               '/{nickname}/contacts[/{type}]'                               => [Module\Profile\Contacts::class, [R::GET]],
-               '/{profile:\d+}/view'                                         => [Module\Profile::class,          [R::GET]],
+               '/{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]],
        ],
 
        '/proxy' => [
@@ -239,6 +247,7 @@ return [
                ],
                '/delegation[/{action}/{user_id}]' => [Module\Settings\Delegation::class,       [R::GET, R::POST]],
                '/profile' => [
+                       '[/]'                  => [Module\Settings\Profile\Index::class,       [R::GET, R::POST]],
                        '/photo[/new]'         => [Module\Settings\Profile\Photo\Index::class, [R::GET, R::POST]],
                        '/photo/crop/{guid}'   => [Module\Settings\Profile\Photo\Crop::class,  [R::GET, R::POST]],
                ],
@@ -254,6 +263,9 @@ return [
        '/starred/{item:\d+}'            => [Module\Starred::class,               [R::GET]],
        '/toggle_mobile'                 => [Module\ToggleMobile::class,          [R::GET]],
        '/tos'                           => [Module\Tos::class,                   [R::GET]],
+
+       '/update_profile'                => [Module\Update\Profile::class,        [R::GET]],
+
        '/view/theme/{theme}/style.pcss' => [Module\Theme::class,                 [R::GET]],
        '/viewsrc/{item:\d+}'            => [Module\Debug\ItemBody::class,        [R::GET]],
        '/webfinger'                     => [Module\Debug\WebFinger::class,       [R::GET]],