django-rest-framework/examples/requestexample/urls.py
2012-02-07 16:52:15 +02:00

10 lines
365 B
Python

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