Skip to content

Commit 9ed748f

Browse files
committed
Fix conflicting overwrites when setting route with same path, different methods.
1 parent d7af5ad commit 9ed748f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Framework/Routing/Routing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public static function build(BuildContext $context): void
152152
);
153153

154154
$routes->add(
155-
$normalizedPath,
155+
implode('|', $methods) . ':' . $normalizedPath,
156156
new Route(
157157
path: $path,
158158
defaults: [

0 commit comments

Comments
 (0)