Skip to content

Commit

Permalink
Add trailing slash to path
Browse files Browse the repository at this point in the history
  • Loading branch information
Wazabii committed Mar 9, 2024
1 parent b0b7dad commit 103fd69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RouterDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function getMethod(): string
*/
public function setDispatchPath(string $path): void
{
$this->dispatchPath = $path;
$this->dispatchPath = "/" . ltrim($path, "/");
}

/**
Expand Down

0 comments on commit 103fd69

Please sign in to comment.