]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #7083 from nupplaphil/task/mod_friendica
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 5 May 2019 18:19:57 +0000 (14:19 -0400)
committerGitHub <noreply@github.com>
Sun, 5 May 2019 18:19:57 +0000 (14:19 -0400)
Move mod/friendica to src/Module/Friendica

1  2 
src/App/Router.php

index 88262454518d83ee3288716d20d8a51615317a0f,b1d8d3ade2bf77c48fb1910e632a7a2c81646cf3..3fec9c43fd6fc0ea4a617f18a467bc997b154dad
@@@ -102,13 -102,7 +103,12 @@@ class Route
                        $collector->addRoute(['GET'], '/{nickname}/replies',                 Module\Feed::class);
                        $collector->addRoute(['GET'], '/{nickname}/activity',                Module\Feed::class);
                });
-               $this->routeCollector->addRoute(['GET'],         '/directory',           Module\Directory::class);
                $this->routeCollector->addRoute(['GET'],         '/feedtest',            Module\Feedtest::class);
 +              $this->routeCollector->addGroup('/fetch', function (RouteCollector $collector) {
 +                      $collector->addRoute(['GET'], '/{guid}/post',                        Module\Diaspora\Fetch::class);
 +                      $collector->addRoute(['GET'], '/{guid}/status_message',              Module\Diaspora\Fetch::class);
 +                      $collector->addRoute(['GET'], '/{guid}/reshare',                     Module\Diaspora\Fetch::class);
 +              });
                $this->routeCollector->addRoute(['GET'],         '/filer[/{id:\d+}]',    Module\Filer::class);
                $this->routeCollector->addRoute(['GET'],         '/followers/{owner}',   Module\Followers::class);
                $this->routeCollector->addRoute(['GET'],         '/following/{owner}',   Module\Following::class);