Change subforum-related routes as per #17
This commit is contained in:
parent
88953e204e
commit
4b4e61e474
|
@ -102,18 +102,17 @@ sub startup {
|
||||||
);
|
);
|
||||||
|
|
||||||
# view subforum
|
# view subforum
|
||||||
# NOTE: keep these at THE BOTTOM of routes, otherwise they override the above routes.
|
$r->get('/board/:id')->to(
|
||||||
$r->get('/:id')->to(
|
|
||||||
controller => 'Controller::ViewSubf',
|
controller => 'Controller::ViewSubf',
|
||||||
action => 'subf_view'
|
action => 'subf_view'
|
||||||
);
|
);
|
||||||
|
|
||||||
# create thread
|
# create thread
|
||||||
$r->get('/:id/new')->to(
|
$r->get('/board/:id/new')->to(
|
||||||
controller => 'Controller::NewThread',
|
controller => 'Controller::NewThread',
|
||||||
action => 'thread_compose'
|
action => 'thread_compose'
|
||||||
);
|
);
|
||||||
$r->post('/:id/new')->to(
|
$r->post('/board/:id/new')->to(
|
||||||
controller => 'Controller::NewThread',
|
controller => 'Controller::NewThread',
|
||||||
action => 'thread_submit'
|
action => 'thread_submit'
|
||||||
);
|
);
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<div class="
|
<div class="
|
||||||
subforum-item subforum-<%= $_subf_id %>
|
subforum-item subforum-<%= $_subf_id %>
|
||||||
category-<%= $_cat_id %>
|
category-<%= $_cat_id %>
|
||||||
"><a href="/<%= $_subf_id %>"><%= $_name %></a></div>
|
"><a href="/board/<%= $_subf_id %>"><%= $_name %></a></div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%
|
<%
|
||||||
|
|
Loading…
Reference in New Issue