This commit is contained in:
2023-04-25 17:22:37 +08:00
parent 02d78eb205
commit 6c86f1f2e5
8 changed files with 18 additions and 7 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ class Head extends AbstractRequestMethod implements InjectRouteInterface
public function dispatch(object $class, string $method): void
{
// TODO: Implement dispatch() method.
$path = $this->version . '/' . ltrim($this->path, '/');
$path = '/' . ltrim($this->path, '/');
Router::addRoute(RequestMethod::REQUEST_HEAD, $path, [$class, $method]);
}