[Bps-public-commit] r17539 - sd/trunk/lib/App/SD/Server

jesse at bestpractical.com jesse at bestpractical.com
Fri Jan 2 19:55:20 EST 2009


Author: jesse
Date: Fri Jan  2 19:55:20 2009
New Revision: 17539

Modified:
   sd/trunk/lib/App/SD/Server/Dispatcher.pm

Log:
* remove pointless []

Modified: sd/trunk/lib/App/SD/Server/Dispatcher.pm
==============================================================================
--- sd/trunk/lib/App/SD/Server/Dispatcher.pm	(original)
+++ sd/trunk/lib/App/SD/Server/Dispatcher.pm	Fri Jan  2 19:55:20 2009
@@ -44,22 +44,21 @@
 };
 
 
-under ['POST'] => sub {
+under 'POST' => sub {
     on 'records' => sub { next_rule;};
     on qr'^POST/issue/([\w\d-]+)/edit$' => sub { shift->server->_send_redirect( to => '/issue/' . $1 ); };
-    #on qr'^POST/(?!records)/(.*)$' => sub { shift->server->_send_redirect( to => $1 ); }
     on qr'^POST/(.*)$' => sub { shift->server->_send_redirect( to => $1 ); }
 };
 
 
-under ['GET'] => sub {
+under 'GET' => sub {
     on qr'^(milestone|component)/([\w\d-]+)$' => sub {
         my $name = $1;
         my $type = $2;
         shift->show_template( $name => $type );
     };
 
-    under ['issue'] => sub {
+    under 'issue' => sub {
         on '' => sub {
             my $self = shift;
             if ( my $id = $self->server->cgi->param('id') ) {



More information about the Bps-public-commit mailing list