Gitlab CSE Unil

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

Julien Furrer's avatar
Julien Furrer committed
4
from django.conf.urls import url, include
Julien Furrer's avatar
Julien Furrer committed
5

M. Chardon's avatar
M. Chardon committed
6
7
8
from . import views

app_name='adim_app'
9

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

M. Chardon's avatar
M. Chardon committed
26
    url(r'^s/u/$', views.suggest_users, name='suggest-users'),
27
]