diff options
Diffstat (limited to 'share/frontend/impattern/app.pl')
| -rw-r--r-- | share/frontend/impattern/app.pl | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/share/frontend/impattern/app.pl b/share/frontend/impattern/app.pl deleted file mode 100644 index b1bfc3c..0000000 --- a/share/frontend/impattern/app.pl +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env perl -use Dancer2; -use Data::Dumper; -set public => './'; - -get '/download/*.*' => sub { - my ($file, $ext) = splat; - # do something with $file.$ext here -}; - -get qr{/img/([\w\.\-_]+)} => sub { - my ($filename) = splat; - send_file sprintf("/img/%s", $filename); -}; -get qr{/patterns/([\w\.\-_]+)} => sub { - my ($filename) = splat; - send_file sprintf("/patterns/%s", $filename); -}; -get qr{/css/([\w\.\-_]+)} => sub { - my ($filename) = splat; - send_file sprintf("/css/%s", $filename); -}; -get qr{/js/([\w\.\-_]+)} => sub { - my ($filename) = splat; - send_file sprintf("/js/%s", $filename); -}; -get qr{/fonts/([\w\.\-_]+)} => sub { - my ($filename) = splat; - send_file sprintf("/fonts/%s", $filename); -}; -get '/' => sub { - send_file ("index.html"); -}; -dance; |
