From 70bef12fd22db5dd78dbdbda075999ecfccfc48c Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 2 May 2019 21:35:37 -0400 Subject: [PATCH] Fix Proxy module routes - Fix EOL in view/templates/exception.tpl --- src/App/Router.php | 8 ++++---- view/templates/exception.tpl | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/App/Router.php b/src/App/Router.php index 83cdf4255..34ca0df3d 100644 --- a/src/App/Router.php +++ b/src/App/Router.php @@ -146,10 +146,10 @@ class Router $collector->addRoute(['GET'], '/{profile:\d+}/view', Module\Profile::class); }); $this->routeCollector->addGroup('/proxy', function (RouteCollector $collector) { - $collector->addRoute(['GET'], '[/]', Module\Proxy::class); - $collector->addRoute(['GET'], '/{url}', Module\Proxy::class); - $collector->addRoute(['GET'], '/sub1/{url}', Module\Proxy::class); - $collector->addRoute(['GET'], '/sub1/sub2/{url}', Module\Proxy::class); + $collector->addRoute(['GET'], '[/]' , Module\Proxy::class); + $collector->addRoute(['GET'], '/{url}' , Module\Proxy::class); + $collector->addRoute(['GET'], '/{sub1}/{url}' , Module\Proxy::class); + $collector->addRoute(['GET'], '/{sub1}/{sub2}/{url}' , Module\Proxy::class); }); $this->routeCollector->addRoute(['GET', 'POST'], '/register', Module\Register::class); $this->routeCollector->addRoute(['GET'], '/statistics.json', Module\Statistics::class); diff --git a/view/templates/exception.tpl b/view/templates/exception.tpl index cc4e6167d..02b7648e3 100644 --- a/view/templates/exception.tpl +++ b/view/templates/exception.tpl @@ -1,4 +1,4 @@ -
-

{{$title}}

-

{{$message}}

-
+
+

{{$title}}

+

{{$message}}

+