[Bps-public-commit] Prophet - A disconnected, replicated p2p database branch, master, updated. a399146ee809a32fa63e9018b62800fbd27c9116

jesse jesse at bestpractical.com
Tue Feb 10 17:16:58 EST 2009


The branch, master has been updated
       via  a399146ee809a32fa63e9018b62800fbd27c9116 (commit)
      from  4b6283f2bba09d2de675ea70d479ddf8b445ce25 (commit)

Summary of changes:
 lib/Prophet/Server/Dispatcher.pm |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

- Log -----------------------------------------------------------------
commit a399146ee809a32fa63e9018b62800fbd27c9116
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Feb 10 17:16:45 2009 -0500

    Adapt to changes in Path::Dispatcher usage

diff --git a/lib/Prophet/Server/Dispatcher.pm b/lib/Prophet/Server/Dispatcher.pm
index 2ebccea..7803db4 100644
--- a/lib/Prophet/Server/Dispatcher.pm
+++ b/lib/Prophet/Server/Dispatcher.pm
@@ -14,7 +14,7 @@ under { method => 'POST' } => sub {
         next_rule;
     };
 
-    under 'records' => sub {
+    under '/records' => sub {
         on qr|^(.*)/(.*)/(.*)$| => sub { shift->server->update_record_prop($1,$2,$3) };
         on qr|^(.*)/(.*).json$| => sub { shift->server->update_record($1,$2) };
         on qr|^(.*).json$|     => sub { shift->server->create_record($1) };
@@ -22,19 +22,19 @@ under { method => 'POST' } => sub {
 };
 
 under { method => 'GET' } => sub {
-    on qr'^=/prophet/autocomplete' => sub {
+    on qr'^/=/prophet/autocomplete' => sub {
         shift->server->show_template('/_prophet_autocompleter') };
-    on qr'^static/prophet/(.*)$' => sub { shift->server->send_static_file($1)};
-    on qr'replica/+(.*)$' => sub { shift->server->serve_replica($1) };
-    on 'records.json' => sub { shift->server->get_record_types };
-    under 'records' => sub {
+    on qr'^/static/prophet/(.*)$' => sub { shift->server->send_static_file($1)};
+    on qr'/replica/+(.*)$' => sub { shift->server->serve_replica($1) };
+    on '/records.json' => sub { shift->server->get_record_types };
+    under '/records' => sub {
         on qr|^(.*)/(.*)/(.*)$| => sub { shift->server->get_record_prop($1,$2,$3); };
         on qr|^(.*)/(.*).json$| => sub { shift->server->get_record($1,$2) };
         on qr|^(.*).json$|      => sub { shift->server->get_record_list($1) };
     };
 };
 
-on qr'^(/.*)$' => sub { shift->server->show_template($1) || next_rule; };
+on qr'^/(.*)$' => sub { shift->server->show_template($1) || next_rule; };
 
 no Any::Moose;
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list