]> git.mxchange.org Git - friendica.git/commitdiff
Add profile archive URL pattern to Router
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 25 May 2019 23:08:43 +0000 (19:08 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 25 May 2019 23:08:43 +0000 (19:08 -0400)
src/App/Router.php

index f7ee24730dfed3ea0bb7fd2b576887daaf4978b5..715ac929ea97e50e622f65873ceb6d85fda4cb0c 100644 (file)
@@ -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);
                });