root / pithos / api / urls.py @ 4adb68b8
History | View | Annotate | Download (515 Bytes)
1 |
#
|
---|---|
2 |
# Copyright (c) 2011 Greek Research and Technology Network
|
3 |
#
|
4 |
|
5 |
from django.conf.urls.defaults import * |
6 |
|
7 |
# TODO: This only works when in this order.
|
8 |
# TODO: Define which characters can be used in each "path" component.
|
9 |
urlpatterns = patterns('pithos.api.functions',
|
10 |
(r'^$', 'authenticate'), |
11 |
(r'^(?P<v_account>.+?)/(?P<v_container>.+?)/(?P<v_object>.+?)$', 'object_demux'), |
12 |
(r'^(?P<v_account>.+?)/(?P<v_container>.+?)$', 'container_demux'), |
13 |
(r'^(?P<v_account>.+?)$', 'account_demux') |
14 |
) |