From 594287dcc8bbee63e4065fe6061c38673a91707f Mon Sep 17 00:00:00 2001 From: yo mama Date: Tue, 23 Jun 2015 13:15:51 -0700 Subject: cleanup --- bin/app.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/app.pl b/bin/app.pl index 8556038..b18b726 100644 --- a/bin/app.pl +++ b/bin/app.pl @@ -1,5 +1,5 @@ #!/usr/bin/env perl -use Dancer2; +use Dancer; use Data::Dumper; set public => './'; @@ -8,6 +8,10 @@ get '/download/*.*' => sub { # do something with $file.$ext here }; +get '/' => sub { + send_file "./index.html"; +}; + get qr{/img/([\w\.\-_]+)} => sub { my ($filename) = splat; send_file sprintf("/img/%s", $filename); -- cgit v1.2.3-70-g09d2