mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 12:17:24 +03:00
8 lines
292 B
Python
8 lines
292 B
Python
from django.conf.urls.defaults import patterns, url
|
|
from pygments_api.views import PygmentsRoot, PygmentsInstance
|
|
|
|
urlpatterns = patterns('',
|
|
url(r'^$', PygmentsRoot.as_view(), name='pygments-root'),
|
|
url(r'^([a-zA-Z0-9-]+)/$', PygmentsInstance.as_view(), name='pygments-instance'),
|
|
)
|