Gitlab CSE Unil

urls.py 920 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

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

9
10
11
urlpatterns = [
    url(r'^$', home, name="home"),
    url(r'^new/$', upload_file, name='upload_file'),
12
    url(r'^annotate/',
Julien Furrer's avatar
Julien Furrer committed
13
        include([
14
            url(r'^$', annotate_new, name="annotate-new"),
Julien Furrer's avatar
Julien Furrer committed
15
16
17
18
19
20
21
            url(r'^(?P<anobj_uuid>[0-9a-f]{6,32})/', include([
                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)
            ])),
        ]),
22
23
24
        name="annotate_base"
        ),

25
    url(r'^s/u/$', suggest_users, name='suggest-users'),
26
    url(r'^essai/$', essai, name='suggest-users'),
27
]