mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 21:14:01 +03:00
8 lines
339 B
Python
8 lines
339 B
Python
from django.conf.urls.defaults import patterns, url
|
|
from resourceexample.views import ExampleResource, AnotherExampleResource
|
|
|
|
urlpatterns = patterns('',
|
|
url(r'^$', ExampleResource.as_view(), name='example-resource'),
|
|
url(r'^(?P<num>[0-9]+)/$', AnotherExampleResource.as_view(), name='another-example-resource'),
|
|
)
|