]> git.mxchange.org Git - friendica.git/blobdiff - static/routes.config.php
Merge pull request #10859 from tobiasd/20211010-de
[friendica.git] / static / routes.config.php
index 2c9765b3c97a6e73a2542648a9dcef62f119ecca..85bd4f9414188add3eeb453eceb1d08f7a9dd8e3 100644 (file)
@@ -259,6 +259,8 @@ return [
        '/dirfind'                  => [Module\Search\Directory::class, [R::GET]],
        '/directory'                => [Module\Directory::class,        [R::GET]],
 
+       '/events/json'                => [Module\Events\Json::class,        [R::GET]],
+
        '/feed'     => [
                '/{nickname}'          => [Module\Feed::class, [R::GET]],
                '/{nickname}/posts'    => [Module\Feed::class, [R::GET]],
@@ -371,9 +373,18 @@ return [
        '/permission/tooltip/{type}/{id:\d+}' => [Module\PermissionTooltip::class, [R::GET]],
 
        '/photo' => [
-               '/{name}'                     => [Module\Photo::class, [R::GET]],
-               '/{type}/{name}'              => [Module\Photo::class, [R::GET]],
-               '/{type}/{customsize}/{name}' => [Module\Photo::class, [R::GET]],
+               '/{name}'                                                  => [Module\Photo::class, [R::GET]],
+               '/{type}/{id:\d+}'                                         => [Module\Photo::class, [R::GET]],
+               // User Id Fallback, to remove after version 2021.12
+               '/{type}/{uid_ext:\d+\..*}'                                => [Module\Photo::class, [R::GET]],
+               '/{type}/{nickname_ext}'                                   => [Module\Photo::class, [R::GET]],
+               // Contact Id Fallback, to remove after version 2021.12
+               '/{type:contact|header}/{customsize:\d+}/{contact_id:\d+}' => [Module\Photo::class, [R::GET]],
+               '/{type:contact|header}/{customsize:\d+}/{guid}'           => [Module\Photo::class, [R::GET]],
+               '/{type}/{customsize:\d+}/{id:\d+}'                        => [Module\Photo::class, [R::GET]],
+               // User Id Fallback, to remove after version 2021.12
+               '/{type}/{customsize:\d+}/{uid_ext:\d+\..*}'               => [Module\Photo::class, [R::GET]],
+               '/{type}/{customsize:\d+}/{nickname_ext}'                  => [Module\Photo::class, [R::GET]],
        ],
 
        '/pretheme'          => [Module\ThemeDetails::class, [R::GET]],