From a0c5a7ce958bf1f619b95f7b5235b1fddd43e961 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 17 Feb 2011 21:41:31 -0600 Subject: actually, only edit needs the special http method thing --- lib/Narwhal.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Narwhal.pm') diff --git a/lib/Narwhal.pm b/lib/Narwhal.pm index 333ba89..aae8a25 100644 --- a/lib/Narwhal.pm +++ b/lib/Narwhal.pm @@ -12,7 +12,7 @@ config template_root => sub { component Redirect => 'Narwhal::Component::Redirect'; -component WikiPage => 'Narwhal::Component::Wiki::Page', ( +component Wiki => 'Narwhal::Component::Wiki', ( kioku => depends_on('/Component/Kioku'), tt => depends_on('/Component/TT'), ); @@ -36,7 +36,7 @@ router as { route '/' => 'redirect.permanent', ( to => '/page/main', ); - route '/page/:page_name' => 'page', ( + route '/page/:page_name' => 'wiki.page', ( page_name => { isa => 'Str' }, ); route '/edit/:page_name' => 'edit', ( @@ -44,7 +44,7 @@ router as { ); }, ( redirect => depends_on('/Component/Redirect'), - page => depends_on('/Component/WikiPage'), + wiki => depends_on('/Component/Wiki'), edit => depends_on('/Component/WikiEdit'), ); -- cgit v1.2.3-54-g00ecf