X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=static%2Froutes.config.php;h=b6ce9bf629fce34bca1d43ec824ce36a6207f6f4;hb=af6db659616d8f17d8c0c2fb82e3c503cec78190;hp=37b91d5010d256f2a4381de71274408fc3b62c2a;hpb=2eebeeaa329584244e414eaa41fc6ac9ed3e1cac;p=friendica.git diff --git a/static/routes.config.php b/static/routes.config.php index 37b91d5010..b6ce9bf629 100644 --- a/static/routes.config.php +++ b/static/routes.config.php @@ -1,17 +1,35 @@ . + * + * Configuration for the default routes in Friendica + * + * The syntax is either + * - 'route' => [ Module::class , [ HTTPMethod(s) ] ] + * - 'group' => [ 'route' => [ Module::class, [ HTTPMethod(s) ] ] + * + * It's possible to create recursive groups + * + */ use Friendica\App\Router as R; use Friendica\Module; -/** -* Configuration for the default routes in Friendica -* -* The syntax is either -* - 'route' => [ Module::class , [ HTTPMethod(s) ] ] -* - 'group' => [ 'route' => [ Module::class, [ HTTPMethod(s) ] ] -* -* It's possible to create recursive groups -*/ return [ '/' => [Module\Home::class, [R::GET]], @@ -37,6 +55,7 @@ return [ ], '/friendica' => [ '/profile/show' => [Module\Api\Friendica\Profile\Show::class , [R::GET ]], + '/events' => [Module\Api\Friendica\Events\Index::class , [R::GET ]], ], ], @@ -84,6 +103,9 @@ return [ '/attach/{item:\d+}' => [Module\Attach::class, [R::GET]], '/babel' => [Module\Debug\Babel::class, [R::GET, R::POST]], '/bookmarklet' => [Module\Bookmarklet::class, [R::GET]], + + '/community[/{content}[/{accounttype}]]' => [Module\Conversation\Community::class, [R::GET]], + '/compose[/{type}]' => [Module\Item\Compose::class, [R::GET, R::POST]], '/contact' => [ @@ -251,6 +273,7 @@ return [ '/verify' => [Module\Settings\TwoFactor\Verify::class, [R::GET, R::POST]], ], '/delegation[/{action}/{user_id}]' => [Module\Settings\Delegation::class, [R::GET, R::POST]], + '/display' => [Module\Settings\Display::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]], @@ -270,6 +293,7 @@ return [ '/toggle_mobile' => [Module\ToggleMobile::class, [R::GET]], '/tos' => [Module\Tos::class, [R::GET]], + '/update_community[/{content}[/{accounttype}]]' => [Module\Update\Community::class, [R::GET]], '/update_profile' => [Module\Update\Profile::class, [R::GET]], '/view/theme/{theme}/style.pcss' => [Module\Theme::class, [R::GET]],