Gitlab CSE Unil

urls.py 665 Bytes
Newer Older
Julien Furrer's avatar
Julien Furrer committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# coding=utf-8
from __future__ import unicode_literals

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

urlpatterns = patterns('adim_app.views',
    url(r'^$', 'home', name="home"),
    url(r'^i/(?P<anobj_uuid>[0-9a-f]{32})/$', 'send_anobj_img', name='ao_image'),
    url(r'^t/(?P<anobj_uuid>[0-9a-f]{32})/$', 'send_anobj_thumb', name="ao_thumb"),
    url(r'^u/$', 'upload_thumb'),
    url(r'^new/$', 'upload_file', name='upload_file'),
    url(r'^annotate/$', 'annotate_new', name="annotate-new"),
    # url(r'^annotate/(?P<anobj_id>\d+|_)/$', 'annotate', name="annotate"),
    url(r'^annotate/(?P<anobj_uuid>[0-9a-f]{32})/$', 'annotate', name="annotate"),
)