summaryrefslogtreecommitdiffstats
path: root/group_messaging/urls.py
blob: 618ae1d520fd789061983bf43be8c68699cc92b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""url configuration for the group_messaging application"""
from django.conf.urls.defaults import patterns
from django.conf.urls.defaults import url
from group_messaging import views

urlpatterns = patterns('',
    url(
        '^threads/$',
        views.ThreadsList().as_view(),
        name='get_threads'
    ),
    url(
        '^threads/(?P<thread_id>\d+)/$',
        views.ThreadDetails().as_view(),
        name='thread_details'
    ),
    url(
        '^threads/create/$',
        views.NewThread().as_view(),
        name='create_thread'
    ),
    url(
        '^senders/$',
        views.SendersList().as_view(),
        name='get_senders'
    )
)