From: Hypolite Petovan Date: Sun, 5 May 2019 18:19:57 +0000 (-0400) Subject: Merge pull request #7083 from nupplaphil/task/mod_friendica X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8af0ae171e7a3f9f47441043cec17db66b2088e5;p=friendica.git Merge pull request #7083 from nupplaphil/task/mod_friendica Move mod/friendica to src/Module/Friendica --- 8af0ae171e7a3f9f47441043cec17db66b2088e5 diff --cc src/App/Router.php index 8826245451,b1d8d3ade2..3fec9c43fd --- a/src/App/Router.php +++ b/src/App/Router.php @@@ -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);