django-rest-framework/examples/objectstore/urls.py

8 lines
319 B
Python
Raw Normal View History

from django.conf.urls.defaults import patterns, url
from objectstore.views import ObjectStoreRoot, StoredObject
2011-12-29 17:31:12 +04:00
urlpatterns = patterns('objectstore.views',
2011-12-29 17:31:12 +04:00
url(r'^$', ObjectStoreRoot.as_view(), name='object-store-root'),
url(r'^(?P<key>[A-Za-z0-9_-]{1,64})/$', StoredObject.as_view(), name='stored-object'),
)