Skip to content

Commit 1d0a3ad

Browse files
Add "remakeRoute" method to $fullPattern
1 parent c3cedb9 commit 1d0a3ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Register.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public function getAction(string $uri_path, string $method)
322322

323323

324324
foreach ($this->routes as $route) {
325-
$fullPattern = $route['pre_pattern'] . '/' . $route['pattern'];
325+
$fullPattern = $this->remakeRoute($route['pre_pattern'] . '/' . $route['pattern']);
326326

327327
if ($requestMethod === $route['method']) {
328328
if ($fullPattern === $path) {

0 commit comments

Comments
 (0)