Skip to content
Browse files

use parameters and call psgi_app

  • Loading branch information...
1 parent 6a132b3 commit a7ddd78bea6c095832c0165f769582b584546dbf @miyagawa committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 eg/chat/app.psgi
View
4 eg/chat/app.psgi
@@ -54,7 +54,7 @@ use Encode;
sub post {
my($self, $channel) = @_;
- my $v = $self->request->params;
+ my $v = $self->request->parameters;
my $html = $self->format_message($v->{text});
my $mq = Tatsumaki::MessageQueue->instance($channel);
$mq->publish({
@@ -96,4 +96,4 @@ my $app = Tatsumaki::Application->new([
$app->template_path(dirname(__FILE__) . "/templates");
$app->static_path(dirname(__FILE__) . "/static");
-return $app;
+return $app->psgi_app;

0 comments on commit a7ddd78

Please sign in to comment.
Something went wrong with that request. Please try again.