This commit is contained in:
2021-03-05 18:59:00 +08:00
parent 3b7105771f
commit 90e2ca6d1c
+1
View File
@@ -481,6 +481,7 @@ class Router extends HttpService implements RouterInterface
public function dispatch(): mixed public function dispatch(): mixed
{ {
if (!($node = $this->find_path(\request()))) { if (!($node = $this->find_path(\request()))) {
var_dump(\request(), $node);
return send(self::NOT_FOUND); return send(self::NOT_FOUND);
} }
send($response = $node->dispatch(), 200); send($response = $node->dispatch(), 200);