From: Philipp Holzer Date: Sat, 4 May 2019 19:37:32 +0000 (+0200) Subject: Move mod/rsd_xml to src/Module/ReallySimpleDiscovery X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a1f332aaa527ae36ecc8cf2944f8b71e2317afea;p=friendica.git Move mod/rsd_xml to src/Module/ReallySimpleDiscovery --- diff --git a/mod/rsd_xml.php b/mod/rsd_xml.php deleted file mode 100644 index 84dedd6c56..0000000000 --- a/mod/rsd_xml.php +++ /dev/null @@ -1,26 +0,0 @@ - - - - Friendica - http://friendica.com/ - - - - http://status.net/wiki/TwitterCompatibleAPI - false - - - - -'; - - exit(); -} diff --git a/src/App/Router.php b/src/App/Router.php index d35977dde1..3dc45fcfa1 100644 --- a/src/App/Router.php +++ b/src/App/Router.php @@ -161,6 +161,7 @@ class Router $collector->addRoute(['GET'], '/{sub1}/{sub2}/{url}' , Module\Proxy::class); }); $this->routeCollector->addRoute(['GET', 'POST'], '/register', Module\Register::class); + $this->routeCollector->addRoute(['GET'], '/rsd.xml', Module\ReallySimpleDiscovery::class); $this->routeCollector->addRoute(['GET'], '/statistics.json', Module\Statistics::class); $this->routeCollector->addRoute(['GET'], '/tos', Module\Tos::class); $this->routeCollector->addRoute(['GET'], '/webfinger', Module\WebFinger::class); diff --git a/src/Module/ReallySimpleDiscovery.php b/src/Module/ReallySimpleDiscovery.php new file mode 100644 index 0000000000..388a652aea --- /dev/null +++ b/src/Module/ReallySimpleDiscovery.php @@ -0,0 +1,21 @@ + + + + Friendica + http://friendica.com/ + + + + http://status.net/wiki/TwitterCompatibleAPI + false + + + + +