X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FPlack%2FApp%2FGruntmaster.pm;h=66f86fe47e83052ef3b6feee560687fae2f4f6fb;hb=31d700150e564fd3bf0eb167ef416c87aed771eb;hp=534326864bfa8c58724bf65f9c88c93fc4a86f59;hpb=923655e1a9f847c21d3fdb254f58e705f4dd4da9;p=plack-app-gruntmaster.git diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index 5343268..66f86fe 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -22,7 +22,7 @@ sub call { my @args; next unless @args = $r->path =~ m/^$re$/a; my $format = choose $obj->variants, $r->headers; - return $obj->generate($format, $env->{'psgix.logger'}, map { $_ // '' } @args); + return $obj->generate($format, $env, map { $_ // '' } @args); } if ($r->method eq 'GET' || $r->method eq 'HEAD') { @@ -73,6 +73,9 @@ BEGIN{ get qr,$ct/submit, => 'Submit'; get qr,$ct/pb/, => 'Pb'; get qr,$ct/pb/$word, => 'Pb::Entry'; + + post qr,/action/register, => 'Register'; + post qr,/action/passwd, => 'Passwd'; } 1;