From: Hypolite Petovan Date: Sat, 25 May 2019 23:08:43 +0000 (-0400) Subject: Add profile archive URL pattern to Router X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=50e44f46aec59af518c35af9d2d7567661ac97d7;p=friendica.git Add profile archive URL pattern to Router --- diff --git a/src/App/Router.php b/src/App/Router.php index f7ee24730d..715ac929ea 100644 --- a/src/App/Router.php +++ b/src/App/Router.php @@ -187,6 +187,7 @@ class Router $this->routeCollector->addRoute(['GET'], '/probe', Module\Debug\Probe::class); $this->routeCollector->addGroup('/profile', function (RouteCollector $collector) { $collector->addRoute(['GET'], '/{nickname}', Module\Profile::class); + $collector->addRoute(['GET'], '/{nickname}/{to:\d{4}-\d{2}-\d{2}}/{from:\d{4}-\d{2}-\d{2}}', Module\Profile::class); $collector->addRoute(['GET'], '/{nickname}/contacts[/{type}]', Module\Profile\Contacts::class); $collector->addRoute(['GET'], '/{profile:\d+}/view', Module\Profile::class); });