urls.py
303 Bytes
from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from restful import views
urlpatterns = [
url(r'^files/$', views.FileList.as_view()),
url(r'^files/(?P<pk>[0-9]+)/$', views.FileDetail.as_view()),
]
urlpatterns = format_suffix_patterns(urlpatterns)