111
This commit is contained in:
@@ -500,14 +500,12 @@ class Router extends HttpService implements RouterInterface
|
|||||||
public function Branch_search(RequestInterface $request): ?Node
|
public function Branch_search(RequestInterface $request): ?Node
|
||||||
{
|
{
|
||||||
$uri = $request->getUri();
|
$uri = $request->getUri();
|
||||||
// if ($request->isMethod('OPTIONS')) {
|
if ($request->isMethod('OPTIONS')) {
|
||||||
// $node = $this->tree_search(['*']);
|
$node = $this->tree_search('/*');
|
||||||
// if (!($node instanceof Node)) {
|
}
|
||||||
// $node = $this->tree_search($uri->getExplode());
|
if (!isset($node)) {
|
||||||
// }
|
|
||||||
// } else {
|
|
||||||
// }
|
|
||||||
$node = $this->tree_search($uri->getPath());
|
$node = $this->tree_search($uri->getPath());
|
||||||
|
}
|
||||||
if (!($node instanceof Node)) {
|
if (!($node instanceof Node)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user