diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-02-18 00:12:12 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-02-18 00:12:12 -0600 |
commit | 4875037269702e9e4195d01e2711b489c40ad0e9 (patch) | |
tree | 1f73708fa2b2cf8a6241ced5891749f846da8a67 /lib/Narwhal.pm | |
parent | 85de4ab2e5114c343cac8abd89a796d1bb48153a (diff) | |
download | narwhal-4875037269702e9e4195d01e2711b489c40ad0e9.tar.gz narwhal-4875037269702e9e4195d01e2711b489c40ad0e9.zip |
allow viewing page history
Diffstat (limited to 'lib/Narwhal.pm')
-rw-r--r-- | lib/Narwhal.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Narwhal.pm b/lib/Narwhal.pm index 4437027..9c0f099 100644 --- a/lib/Narwhal.pm +++ b/lib/Narwhal.pm @@ -42,6 +42,13 @@ router as { route '/edit/:page_name' => 'http-method:edit', ( page_name => { isa => 'Str' }, ); + route '/page/:page_name/:rev' => 'wiki.old_page', ( + page_name => { isa => 'Str' }, + rev => { isa => qr/^[0-9a-f]{40}$/ }, + ); + route '/history/:page_name' => 'wiki.history', ( + page_name => { isa => 'Str' }, + ); }, ( redirect => depends_on('/Component/Redirect'), wiki => depends_on('/Component/Wiki'), |