diff options
| author | pepperpepperpepper <pepper@scannerjammer.com> | 2015-11-18 10:08:55 -0800 |
|---|---|---|
| committer | pepperpepperpepper <pepper@scannerjammer.com> | 2015-11-18 10:08:55 -0800 |
| commit | 67033f5c20c9c1c6653cdb3e66a74539d634ec64 (patch) | |
| tree | e3981e3d035d63995a78b0d2d455302f6875fb88 /share/frontend/impattern/app.pl | |
| parent | 348494657b7366263de6baf09ddfc6a528fac594 (diff) | |
cleanup continued
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; |
