Change subforum-related routes as per #17
This commit is contained in:
parent
88953e204e
commit
4b4e61e474
|
@ -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'
|
||||
);
|
||||
|
|
|
@ -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 %>
|
||||
|
||||
<%
|
||||
|
|
Loading…
Reference in New Issue