django-rest-framework/examples/requestexample/urls.py

10 lines
367 B
Python
Raw Normal View History

2012-01-25 02:11:54 +04:00
from django.conf.urls.defaults import patterns, url
from requestexample.views import RequestExampleView, EchoRequestContentView
2012-02-10 13:05:20 +04:00
from examples.views import ProxyView
2012-01-25 02:11:54 +04:00
urlpatterns = patterns('',
url(r'^$', RequestExampleView.as_view(), name='request-example'),
2012-02-10 13:05:20 +04:00
url(r'^content$', ProxyView.as_view(view_class=EchoRequestContentView), name='request-content'),
2012-01-25 02:11:54 +04:00
)