summaryrefslogtreecommitdiffstats
path: root/lib/Narwhal.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-02-18 12:25:57 -0600
committerJesse Luehrs <doy@tozt.net>2011-02-18 12:25:57 -0600
commit18f07a26819d72517556849fc59c9860a90d3c9c (patch)
tree6fca0dbab71a937aa04705c6ff663999becbaf46 /lib/Narwhal.pm
parentf4b3b90c3ccef7deb127c3ea1fc46984d64db605 (diff)
downloadnarwhal-18f07a26819d72517556849fc59c9860a90d3c9c.tar.gz
narwhal-18f07a26819d72517556849fc59c9860a90d3c9c.zip
use new route builder api
Diffstat (limited to 'lib/Narwhal.pm')
-rw-r--r--lib/Narwhal.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Narwhal.pm b/lib/Narwhal.pm
index 0a7a24e..612c2b9 100644
--- a/lib/Narwhal.pm
+++ b/lib/Narwhal.pm
@@ -1,6 +1,5 @@
package Narwhal;
use OX;
-use Narwhal::RouteBuilder::HTTPMethod;
with 'OX::Role::WithAppRoot';
@@ -41,7 +40,7 @@ component Kioku => 'Narwhal::Component::Model', (
extra_args => depends_on('/Config/kioku_extra_args'),
);
-router as {
+router ['Narwhal::RouteBuilder::HTTPMethod'], as {
route '/' => 'redirect.permanent', (
to => '/page/main',
);