[libdancer-plugin-rest-perl] 60/63: use hook instead of before, fix POD

Jonas Smedegaard dr at jones.dk
Wed Jul 2 11:44:55 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag 0.07
in repository libdancer-plugin-rest-perl.

commit a38d72c1b0505b49269398bf55d6875875b38481
Author: Alexis Sukrieh <sukria at sukria.net>
Date:   Tue Nov 1 23:02:54 2011 +0100

    use hook instead of before, fix POD
---
 lib/Dancer/Plugin/REST.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/Dancer/Plugin/REST.pm b/lib/Dancer/Plugin/REST.pm
index bfb116a..063c4ea 100644
--- a/lib/Dancer/Plugin/REST.pm
+++ b/lib/Dancer/Plugin/REST.pm
@@ -27,7 +27,7 @@ register prepare_serializer_for_format => sub {
         }
     );
 
-    before sub {
+    hook 'before' => sub {
         my $format = params->{'format'};
         return unless defined $format;
 
@@ -223,8 +223,8 @@ This keyword lets you declare a resource your application will handle.
     # this defines the following routes:
     # GET /user/:id
     # GET /user/:id.:format
-    # POST /user/create
-    # POST /user/create.:format
+    # POST /user
+    # POST /user.:format
     # DELETE /user/:id
     # DELETE /user/:id.:format
     # PUT /user/:id

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdancer-plugin-rest-perl.git



More information about the Pkg-perl-cvs-commits mailing list