Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'release/0.07'

  • Loading branch information...
commit 7a26a08d12b98b0dcafacb7a15f1a04fa6c75683 2 parents 5186ff2 + 282e49c
Alexis Sukrieh authored
Showing with 10 additions and 4 deletions.
  1. +6 −0 CHANGES
  2. +4 −4 lib/Dancer/Plugin/REST.pm
View
6 CHANGES
@@ -1,3 +1,9 @@
+0.07 2011-11-01
+
+ * Minor updates to fix warnings with Dancer 1.3080
+ * Fix POD
+ (Alexis Sukrieh)
+
0.06 2011-05-28
[ TEST SUITE ]
View
8 lib/Dancer/Plugin/REST.pm
@@ -7,7 +7,7 @@ use Dancer ':syntax';
use Dancer::Plugin;
our $AUTHORITY = 'SUKRIA';
-our $VERSION = '0.06';
+our $VERSION = '0.07';
my $content_types = {
json => 'application/json',
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.