aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pygments_api/urls.py
diff options
context:
space:
mode:
authortom christie tom@tomchristie.com2011-01-26 08:58:09 +0000
committertom christie tom@tomchristie.com2011-01-26 08:58:09 +0000
commit6807cf014cb0fde611f63c64bc352038206176cc (patch)
treeb5ebd4414852bf39efdf5380c57875c91e798ee2 /examples/pygments_api/urls.py
parenteff54c00d514e1edd74fbc789f9064d09db40b02 (diff)
downloaddjango-rest-framework-6807cf014cb0fde611f63c64bc352038206176cc.tar.bz2
Added pygments_api example
Diffstat (limited to 'examples/pygments_api/urls.py')
-rw-r--r--examples/pygments_api/urls.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/pygments_api/urls.py b/examples/pygments_api/urls.py
new file mode 100644
index 00000000..39bcf668
--- /dev/null
+++ b/examples/pygments_api/urls.py
@@ -0,0 +1,6 @@
+from django.conf.urls.defaults import patterns
+
+urlpatterns = patterns('pygments_api.views',
+ (r'^$', 'PygmentsRoot'),
+ (r'^([a-zA-Z0-9]+)/$', 'PygmentsInstance'),
+)