summary refs log tree commit diff
path: root/lib/mywebapp.pm
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-09-01 12:08:46 +0200
committerfranck cuny <franck@lumberjaph.net>2010-09-01 12:08:46 +0200
commitf033faed1c59ebeb36605232ce62f4043da22124 (patch)
treed63f9811c6a1ecf9193632c242b4a38740878a6b /lib/mywebapp.pm
downloaddancerdemo-f033faed1c59ebeb36605232ce62f4043da22124.tar.gz
initial import
Diffstat (limited to 'lib/mywebapp.pm')
-rw-r--r--lib/mywebapp.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/mywebapp.pm b/lib/mywebapp.pm
new file mode 100644
index 0000000..c756952
--- /dev/null
+++ b/lib/mywebapp.pm
@@ -0,0 +1,13 @@
+package mywebapp;
+use Dancer ':syntax';
+
+our $VERSION = '0.1';
+
+load_app 'mywebapp::user', prefix => '/user';
+load_app 'mywebapp::project', prefix => '/project';
+
+get '/' => sub {
+    template 'index';
+};
+
+true;