X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=static%2Froutes.config.php;h=44502cdfb2c36be95edb00dea4ffc2411e193e81;hb=e59a9fbef7b5ea97822f04d5f6aafcfb3f5f7796;hp=824354690d5972675d846f328fd67cf77f705dbb;hpb=97b0175e552b5bdacaf47ec933cabb41e57df5e1;p=friendica.git diff --git a/static/routes.config.php b/static/routes.config.php index 824354690d..44502cdfb2 100644 --- a/static/routes.config.php +++ b/static/routes.config.php @@ -23,13 +23,14 @@ return [ ], '/2fa' => [ - '[/]' => [Module\TwoFactor\Verify::class, [R::GET, R::POST]], - '/recovery' => [Module\TwoFactor\Recovery::class, [R::GET, R::POST]], + '[/]' => [Module\Security\TwoFactor\Verify::class, [R::GET, R::POST]], + '/recovery' => [Module\Security\TwoFactor\Recovery::class, [R::GET, R::POST]], ], '/api' => [ '/v1' => [ '/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]], ], @@ -138,11 +139,12 @@ return [ '/{group:\d+}/add/{contact:\d+}' => [Module\Group::class, [R::GET, R::POST]], '/{group:\d+}/remove/{contact:\d+}' => [Module\Group::class, [R::GET, R::POST]], ], - '/hashtag' => [Module\Hashtag::class, [R::GET]], - '/home' => [Module\Home::class, [R::GET]], - '/help[/{doc:.+}]' => [Module\Help::class, [R::GET]], - '/inbox[/{nickname}]' => [Module\Inbox::class, [R::GET, R::POST]], - '/invite' => [Module\Invite::class, [R::GET, R::POST]], + '/hashtag' => [Module\Hashtag::class, [R::GET]], + '/help[/{doc:.+}]' => [Module\Help::class, [R::GET]], + '/home' => [Module\Home::class, [R::GET]], + '/hcard/{profile}[/{action}]' => [Module\HoverCard::class, [R::GET]], + '/inbox[/{nickname}]' => [Module\Inbox::class, [R::GET, R::POST]], + '/invite' => [Module\Invite::class, [R::GET, R::POST]], '/install' => [ '[/]' => [Module\Install::class, [R::GET, R::POST]], @@ -155,8 +157,8 @@ return [ '/like/{item:\d+}' => [Module\Like::class, [R::GET]], '/localtime' => [Module\Debug\Localtime::class, [R::GET, R::POST]], - '/login' => [Module\Login::class, [R::GET, R::POST]], - '/logout' => [Module\Logout::class, [R::GET, R::POST]], + '/login' => [Module\Security\Login::class, [R::GET, R::POST]], + '/logout' => [Module\Security\Logout::class, [R::GET, R::POST]], '/magic' => [Module\Magic::class, [R::GET]], '/maintenance' => [Module\Maintenance::class, [R::GET]], '/manifest' => [Module\Manifest::class, [R::GET]], @@ -165,6 +167,16 @@ return [ '/nodeinfo/{version}' => [Module\NodeInfo::class, [R::GET]], '/nogroup' => [Module\Group::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]], + ], + '/notify' => [ '[/]' => [Module\Notifications\Notify::class, [R::GET]], '/view/{id:\d+}' => [Module\Notifications\Notify::class, [R::GET]], @@ -177,9 +189,10 @@ return [ '/h2b' => [Module\Oembed::class, [R::GET]], '/{hash}' => [Module\Oembed::class, [R::GET]], ], - '/outbox/{owner}' => [Module\Outbox::class, [R::GET]], - '/owa' => [Module\Owa::class, [R::GET]], - '/opensearch' => [Module\OpenSearch::class, [R::GET]], + '/outbox/{owner}' => [Module\Outbox::class, [R::GET]], + '/owa' => [Module\Owa::class, [R::GET]], + '/openid' => [Module\Security\OpenID::class, [R::GET]], + '/opensearch' => [Module\OpenSearch::class, [R::GET]], '/photo' => [ '/{name}' => [Module\Photo::class, [R::GET]], @@ -225,6 +238,10 @@ return [ '/verify' => [Module\Settings\TwoFactor\Verify::class, [R::GET, R::POST]], ], '/delegation[/{action}/{user_id}]' => [Module\Settings\Delegation::class, [R::GET, R::POST]], + '/profile' => [ + '/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]], + ], '/userexport[/{action}]' => [Module\Settings\UserExport::class, [R::GET, R::POST]], ],