test two endpoints with the same endpoint name (empty string)
[catagits/CatalystX-Routes.git] / t / lib / MyApp1 / Controller / C1.pm
index 23e315e..d2991f5 100644 (file)
@@ -59,7 +59,18 @@ chain_point '_set_user'
 get ''
     => chained '_set_user'
     => args 0
-    => sub { $REQ{empty} = $REQ{user} };
+    => sub { $REQ{user_end} = $REQ{user} };
+
+chain_point '_set_thing'
+    => chained '/'
+    => path_part 'thing'
+    => capture_args 1
+    => sub { $REQ{thing} = $_[2] };
+
+get ''
+    => chained '_set_thing'
+    => args 0
+    => sub { $REQ{thing_end} = $REQ{user} };
 
 sub normal : Chained('/') : Args(0) {
     $REQ{normal}++;