Add profile archive URL pattern to Router
This commit is contained in:
parent
d27d4d8927
commit
50e44f46ae
|
@ -187,6 +187,7 @@ class Router
|
||||||
$this->routeCollector->addRoute(['GET'], '/probe', Module\Debug\Probe::class);
|
$this->routeCollector->addRoute(['GET'], '/probe', Module\Debug\Probe::class);
|
||||||
$this->routeCollector->addGroup('/profile', function (RouteCollector $collector) {
|
$this->routeCollector->addGroup('/profile', function (RouteCollector $collector) {
|
||||||
$collector->addRoute(['GET'], '/{nickname}', Module\Profile::class);
|
$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'], '/{nickname}/contacts[/{type}]', Module\Profile\Contacts::class);
|
||||||
$collector->addRoute(['GET'], '/{profile:\d+}/view', Module\Profile::class);
|
$collector->addRoute(['GET'], '/{profile:\d+}/view', Module\Profile::class);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue