mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 19:43:59 +03:00
8 lines
293 B
Python
8 lines
293 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'),
|
|
)
|