From 4b4e61e474fc429f7919b171300153c925a17e15 Mon Sep 17 00:00:00 2001 From: ngoomie Date: Tue, 20 Aug 2024 22:06:06 -0600 Subject: [PATCH] Change subforum-related routes as per #17 --- lib/CharmBoard.pm | 7 +++---- templates/index.html.ep | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) 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 %>
+ "><%= $_name %> <% end %> <%