Gitlab CSE Unil

urls.py 1.12 KB
Newer Older
Julien Furrer's avatar
Julien Furrer committed
1
2
3
4
5
# coding=utf-8
from __future__ import unicode_literals

from django.conf.urls import url, patterns, include

6
7
from .views import home, upload_file, annotate_new, annotate, send_anobj_img, anobj_thumb, upload_anobj_thumb, \
    suggest_users
8

9
10
11
urlpatterns = [
    url(r'^$', home, name="home"),
    url(r'^new/$', upload_file, name='upload_file'),
12
    url(r'^annotate/',
13
14
        include(patterns('',
            url(r'^$', annotate_new, name="annotate-new"),
15
            url(r'^(?P<anobj_uuid>[0-9a-f]{6,32})/',
16
17
18
19
20
                include(patterns('',
                    url(r'^$', annotate, name="annotate"),
                    url(r'^image/$', send_anobj_img, name='ao_image'),
                    url(r'^thumb/$', anobj_thumb, name="ao_thumb"),
                    url(r'^u/$', upload_anobj_thumb),
21
22
23
24
25
26
                ))
                ),
        )),
        name="annotate_base"
        ),

27
28
    url(r'^s/u/$', suggest_users, name='suggest-users'),
]
29

30
31
32
33
34
# urlpatterns += patterns('adim_app.playground',
#     url(r'^bh/$', 'bloodhound'),
#     url(r'^bh/users/$', 'bloodhound_users'),
#     # url(r'^bh/ldap_users/$', 'bloodhound_ldapusers'),
# )