From 50e44f46aec59af518c35af9d2d7567661ac97d7 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 25 May 2019 19:08:43 -0400 Subject: [PATCH] Add profile archive URL pattern to Router --- src/App/Router.php | 1 + 1 file changed, 1 insertion(+) 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); });