django-rest-framework/examples/requestexample/urls.py
2012-01-25 00:11:54 +02:00

8 lines
338 B
Python

from django.conf.urls.defaults import patterns, url
from requestexample.views import RequestExampleView, MockView, EchoRequestContentView
urlpatterns = patterns('',
url(r'^$', RequestExampleView.as_view(), name='request-example'),
url(r'^content$', MockView.as_view(view_class=EchoRequestContentView), name='request-content'),
)