变更
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user