mirror of
https://github.com/friendica/friendica
synced 2024-11-19 04:23:41 +00:00
Merge pull request #7076 from MrPetovan/bug/fix-proxy-router
Fix Proxy module routes
This commit is contained in:
commit
900fe158f5
2 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div id="exception" class="generic-page-wrapper">
|
||||
<h1>{{$title}}</h1>
|
||||
<p>{{$message}}</p>
|
||||
</div>
|
||||
<div id="exception" class="generic-page-wrapper">
|
||||
<h1>{{$title}}</h1>
|
||||
<p>{{$message}}</p>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue