mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 03:23:59 +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'),
|
|
)
|