diff --git a/http/sakisafe.pl b/http/sakisafe.pl index 08156b7..7a42a99 100755 --- a/http/sakisafe.pl +++ b/http/sakisafe.pl @@ -96,45 +96,48 @@ get '/f/:dir/#name' => sub ($c) { content_disposition => 'inline' ) -}; - app->max_request_size( 1024 * 1024 * 100 ); +} +; +app->max_request_size( 1024 * 1024 * 100 ); - post '/upload' => sub ($c) { handle_file($c) }; +post '/upload' => sub ($c) { handle_file($c) }; - app->start; +app->start; - # Index template +# Index template - #By default Mojolicious gets the "directory root" from the "public" - # directory, so the css and the favicon from the "public" directory, - # in the root of this repo. - __DATA__ +#By default Mojolicious gets the "directory root" from the "public" +# directory, so the css and the favicon from the "public" directory, +# in the root of this repo. + +__DATA__ @@ index.html.ep - - -
-POST a file:
-curl -F 'file=@yourfile.png' https://<%= $c->req->url->to_abs->host; %>
-Post your text directly
-curl -F 'file=@-' https://<%= $c->req->url->to_abs->host; %>
-POST a file:
+curl -F 'file=@yourfile.png' https://<%= $c->req->url->to_abs->host; %>
+ Post your text directly
+curl -F 'file=@-' https://<%= $c->req->url->to_abs->host; %>
+