mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-27 03:54:01 +03:00
8 lines
349 B
Python
8 lines
349 B
Python
from django.conf.urls.defaults import patterns, url
|
|
from modelresourceexample.views import MyModelRootResource, MyModelResource
|
|
|
|
urlpatterns = patterns('modelresourceexample.views',
|
|
url(r'^$', MyModelRootResource.as_view(), name='my-model-root-resource'),
|
|
url(r'^([0-9]+)/$', MyModelResource.as_view(), name='my-model-resource'),
|
|
)
|