[Bps-public-commit] SD - A distributed issue tracker branch, master, updated. d542bb5aea0405a16f88f285ac22d5c206dd0ec0
jesse
jesse at bestpractical.com
Tue Feb 10 17:17:26 EST 2009
The branch, master has been updated
via d542bb5aea0405a16f88f285ac22d5c206dd0ec0 (commit)
from 4646320c12561521aac9c109c9d2d26b59888e2a (commit)
Summary of changes:
lib/App/SD/Server/Dispatcher.pm | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
- Log -----------------------------------------------------------------
commit d542bb5aea0405a16f88f285ac22d5c206dd0ec0
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Tue Feb 10 17:17:06 2009 -0500
Adapt to changes in usage of Path::Dispatcher
diff --git a/lib/App/SD/Server/Dispatcher.pm b/lib/App/SD/Server/Dispatcher.pm
index 8c7a7ca..e3d419a 100644
--- a/lib/App/SD/Server/Dispatcher.pm
+++ b/lib/App/SD/Server/Dispatcher.pm
@@ -52,21 +52,21 @@ on qr'.' => sub {
under { method => 'POST' } => sub {
- on qr'^ticket/([\w\d-]+)/edit$' => sub { shift->server->_send_redirect( to => '/ticket/' . $1 ); };
- on qr'^(?!records)$' => sub { shift->server->_send_redirect( to => $1 ); };
+ on qr'^/ticket/([\w\d-]+)/edit$' => sub { shift->server->_send_redirect( to => '/ticket/' . $1 ); };
+ on qr'^/(?!records)$' => sub { shift->server->_send_redirect( to => $1 ); };
};
under { method => 'GET' } => sub {
- on qr'^static/sd/(.*)$' => sub { shift->server->send_static_file($1)};
- on qr'^(milestone|component)/([\w\d-]+)$' => sub {
+ on qr'^/static/sd/(.*)$' => sub { shift->server->send_static_file($1)};
+ on qr'^/(milestone|component)/([\w\d-]+)$' => sub {
my $name = $1;
my $type = $2;
shift->show_template( $name => $type );
};
- on qr'^tickets/all$' => sub {shift->show_template('all_tickets')};
- under 'ticket' => sub {
+ on qr'^/tickets/all$' => sub {shift->show_template('all_tickets')};
+ under qr'^/ticket' => sub {
on '' => sub {
my $self = shift;
if ( my $id = $self->server->cgi->param('id') ) {
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list