This commit is contained in:
2021-09-18 10:51:58 +08:00
parent 6ffebb0950
commit c2243b780c
+3
View File
@@ -108,6 +108,9 @@ class Router extends HttpService implements RouterInterface
$path = $this->addPrefix() . '/' . ltrim($path, '/');
if (is_string($handler)) {
$handler = explode('@', $handler);
}
HandlerManager::add($path, $method, new Handler($path, $handler));