X-Git-Url: http://git.veekun.com/zzz-spline-forum.git/blobdiff_plain/e50129eabfd1aeb25bcfce911546699b89b0019c..00a935f38530f3fb12fc1f0d949b00f4fa663e9b:/splinext/forum/__init__.py?ds=inline diff --git a/splinext/forum/__init__.py b/splinext/forum/__init__.py index 98ad4af..6914409 100644 --- a/splinext/forum/__init__.py +++ b/splinext/forum/__init__.py @@ -9,10 +9,14 @@ import splinext.forum.controllers.forum def add_routes_hook(map, *args, **kwargs): """Hook to inject some of our behavior into the routes configuration.""" + require_POST = dict(conditions=dict(method=['POST'])) + map.connect('/forums', controller='forum', action='forums') map.connect('/forums/{forum_id}', controller='forum', action='threads') map.connect('/forums/{forum_id}/threads/{thread_id}', controller='forum', action='posts') + map.connect('/forums/{forum_id}/threads/{thread_id}/write', controller='forum', action='write') + class ForumPlugin(PluginBase): def controllers(self):