Refreshing branch
[catagits/Catalyst-Runtime.git] / trunk / t / lib / TestApp / Controller / Args.pm
diff --git a/trunk/t/lib/TestApp/Controller/Args.pm b/trunk/t/lib/TestApp/Controller/Args.pm
new file mode 100644 (file)
index 0000000..8f16996
--- /dev/null
@@ -0,0 +1,16 @@
+package TestApp::Controller::Args;
+
+use strict;
+use base 'Catalyst::Controller';
+
+sub args :Local  {
+    my ( $self, $c ) = @_;
+    $c->res->body( join('',@{$c->req->args}) );
+}
+
+sub params :Local {
+    my ( $self, $c ) = splice @_, 0, 2;
+    $c->res->body( join('',@_) );
+}
+
+1;