summaryrefslogtreecommitdiff
path: root/meetingtools/urls.py
blob: c4a28558af0cfd3753134cd12704f11432ced94f (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
from django.conf.urls import patterns,include

from django.contrib import admin
from meetingtools.settings import STATIC_ROOT
from meetingtools.multiresponse import redirect_to
from meetingtools.apps.room.feeds import RoomAtomTagFeed,RoomRSSTagField,\
    AtomRecordingFeed, RSSRecordingField
admin.autodiscover()

def welcome(request):
    return redirect_to('/rooms')

def crap(request):
    raise ValueError("Bad crab!")

handler500 = "meetingtools.multiresponse.render500"

urlpatterns = patterns('',
    (r'^$',welcome),
    (r'^saml2/sp/',include('djangosaml2.urls')),
    (r'^admin/', include(admin.site.urls)),
    (r'^static/(?P<path>.*)$','django.views.static.serve',{'document_root': STATIC_ROOT}),
    # Login/Logout
    (r'^accounts/login?$','meetingtools.apps.auth.views.login'),
    (r'^accounts/login-federated$','meetingtools.apps.auth.views.accounts_login_federated'),
    (r'^accounts/logout$','meetingtools.apps.auth.views.logout'),
    (r'^user/?(.*)$','meetingtools.apps.room.views.list_rooms'),
    (r'^crab/',crap),
    ('^myroom/?','meetingtools.apps.room.views.myroom'),
    (r'^(?:room|rooms)$','meetingtools.apps.room.views.list_rooms'),
    (r'^go/(\d+)$','meetingtools.apps.room.views.go_by_id'),
    (r'^go/(.+)$','meetingtools.apps.room.views.go_by_path'),
    (r'^launch/(\d+)$','meetingtools.apps.room.views.launch'),
    (r'^promote/(\d+)$','meetingtools.apps.room.views.promote_and_launch'),
    (r'^room/create$','meetingtools.apps.room.views.create'),
    (r'^room/(\d+)$','meetingtools.apps.room.views.view'),
    (r'^room/(\d+)/modify$','meetingtools.apps.room.views.update'),
    (r'^room/(\d+)/delete$','meetingtools.apps.room.views.delete'),
    (r'^room/(\d+)/unlock$','meetingtools.apps.room.views.unlock'),
    (r'^room/(\d+)/publish/(\d+)','meetingtools.apps.archive.views.publish_sco'),
    (r'^room/(\d+)/tag$','meetingtools.apps.room.views.tag'),
    (r'^room/(\d+)/untag/(.+)$','meetingtools.apps.room.views.untag'),
    (r'^archive/(\d+)/tag$','meetingtools.apps.archive.views.tag'),
    (r'^archive/(\d+)/untag/(.+)$','meetingtools.apps.archive.views.untag'),
    (r'^room/(\d+)/recordings$','meetingtools.apps.room.views.recordings'),
    (r'^room/\+(.+)\.(?:json|html|htm)$','meetingtools.apps.room.views.list_by_tag'),
    (r'^room/\+(.+)\.(?:atom)$',RoomAtomTagFeed()),
    (r'^room/\+(.+)\.(?:rss)$',RoomRSSTagField()),
    (r'^room/(\d+)/recordings\.(?:atom)$',AtomRecordingFeed()),
    (r'^room/(\d+)/recordings\.(?:rss)$',RSSRecordingField()),
    (r'^room/\+(.+)$','meetingtools.apps.room.views.list_by_tag'),
    (r'^widget/?\+?(.*)$','meetingtools.apps.room.views.widget'),
    # Uncomment the admin/doc line below to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    (r'^api/stats/user/(.*)$','meetingtools.apps.stats.views.user_minutes_api'),
    (r'^api/stats/domain/(.+)$','meetingtools.apps.stats.views.domain_minutes_api'),
    (r'^api/stats/room/(\d+)$','meetingtools.apps.stats.views.room_minutes_api'),
    (r'^api/room/(\d+)/occupation$','meetingtools.apps.room.views.occupation'),
    (r'^stats$','meetingtools.apps.stats.views.user'),
    (r'^stats/user/(.+)$','meetingtools.apps.stats.views.user'),
    (r'^stats/domain/(.+)$','meetingtools.apps.stats.views.domain'),
    (r'^stats/room/(\d+)$','meetingtools.apps.stats.views.room'),
)