Change subforum-related routes as per #17

This commit is contained in:
ngoomie 2024-08-20 22:06:06 -06:00
parent 88953e204e
commit 4b4e61e474
2 changed files with 4 additions and 5 deletions

View File

@ -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'
);

View File

@ -14,7 +14,7 @@
<div class="
subforum-item subforum-<%= $_subf_id %>
category-<%= $_cat_id %>
"><a href="/<%= $_subf_id %>"><%= $_name %></a></div>
"><a href="/board/<%= $_subf_id %>"><%= $_name %></a></div>
<% end %>
<%