From 95357d5c63ebc3dfd84030afef2360635ac7fd03 Mon Sep 17 00:00:00 2001 From: Difrex Date: Tue, 11 Aug 2015 09:49:27 +0300 Subject: [PATCH] changes --- iiplc.app | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/iiplc.app b/iiplc.app index 0c146b3..5692319 100644 --- a/iiplc.app +++ b/iiplc.app @@ -19,6 +19,7 @@ use warnings; use Plack::Builder; use Plack::Request; use Plack::Response; + # Static files use Plack::App::File; @@ -65,7 +66,7 @@ my $thread = sub { my $get = sub { $config = $c->reload(); - my $GET = II::Get->new($config); + my $GET = II::Get->new($config); my $msgs = $GET->get_echo(); my $new_mes = $render->new_mes($msgs); return [ 200, [ 'Content-type' => 'text/html' ], ["$new_mes"], ]; @@ -178,17 +179,17 @@ my $user = sub { # Mountpoints builder { - mount "/static" => Plack::App::File->new(root => './s/')->to_app; - mount '/' => $root; - mount '/e' => $echo; - mount '/s' => $thread; - mount '/u' => $user; - mount '/me' => $me; - mount '/tree' => $tree; - mount '/get/' => $get; - mount '/send' => $send; - mount '/enc' => $enc; - mount '/out' => $out; - mount '/push' => $push; - mount '/new' => $new; + mount "/static" => Plack::App::File->new( root => './s/' )->to_app; + mount '/' => $root; + mount '/e' => $echo; + mount '/s' => $thread; + mount '/u' => $user; + mount '/me' => $me; + mount '/tree' => $tree; + mount '/get/' => $get; + mount '/send' => $send; + mount '/enc' => $enc; + mount '/out' => $out; + mount '/push' => $push; + mount '/new' => $new; };