diff --git a/lib/CharmBoard.pm b/lib/CharmBoard.pm index c2acbc6..410c534 100644 --- a/lib/CharmBoard.pm +++ b/lib/CharmBoard.pm @@ -102,18 +102,17 @@ sub startup { ); # view subforum - # NOTE: keep these at THE BOTTOM of routes, otherwise they override the above routes. - $r->get('/:id')->to( + $r->get('/board/:id')->to( controller => 'Controller::ViewSubf', action => 'subf_view' ); # create thread - $r->get('/:id/new')->to( + $r->get('/board/:id/new')->to( controller => 'Controller::NewThread', action => 'thread_compose' ); - $r->post('/:id/new')->to( + $r->post('/board/:id/new')->to( controller => 'Controller::NewThread', action => 'thread_submit' ); diff --git a/templates/index.html.ep b/templates/index.html.ep index aeb6b7d..dd6b09d 100644 --- a/templates/index.html.ep +++ b/templates/index.html.ep @@ -14,7 +14,7 @@
+ "><%= $_name %> <% end %> <%