From: Philipp Holzer Date: Sun, 5 May 2019 17:06:51 +0000 (+0200) Subject: Move mod/robots_txt to src/Module/RobotsTxt X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=510c150156f3d89261bda00ac54ed2e5beaa7bab;p=friendica.git Move mod/robots_txt to src/Module/RobotsTxt --- diff --git a/mod/robots_txt.php b/mod/robots_txt.php deleted file mode 100644 index 0575742dd8..0000000000 --- a/mod/robots_txt.php +++ /dev/null @@ -1,30 +0,0 @@ -addRoute(['GET'], '/{sub1}/{sub2}/{url}' , Module\Proxy::class); }); $this->routeCollector->addRoute(['GET', 'POST'], '/register', Module\Register::class); + $this->routeCollector->addRoute(['GET'], '/robots.txt', Module\RobotsTxt::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); diff --git a/src/Module/RobotsTxt.php b/src/Module/RobotsTxt.php new file mode 100644 index 0000000000..3648f6f9fb --- /dev/null +++ b/src/Module/RobotsTxt.php @@ -0,0 +1,27 @@ +