commit: | a6df1e6f454a391b87e7c7461f5d01fd918807aa |
author: | Chip Black |
committer: | Chip Black |
date: | Sun Jul 26 17:14:52 2015 -0500 |
parents: | 228906ddf43b56c5d557841e4b17f47733cf444f |
diff --git a/server/server.pl b/server/server.pl line changes: +14/-0 index 66f2eac..a36a85c --- a/server/server.pl +++ b/server/server.pl
@@ -33,4 +33,18 @@ websocket '/ws/#jid' => sub { }); }; +if (app->mode eq 'development') { + push @{app->static->paths}, '../client/'; + + get '/client/' => sub { + my $c = shift; + $c->reply->static('debug.html'); + }; + + get '/client/*path' => sub { + my $c = shift; + $c->reply->static($c->stash('path')); + }; +} + app->start;