#########################################################################
#-*- coding:utf-8 -*-
# File Name: urls.py
#########################################################################
#!/bin/python
#from django.conf.urls import url
#from snippets import views
#
#urlpatterns = [
#    url(r'^snippets/$', views.snippet_list),
#    url(r'^snippets/(?P<pk>[0-9]+)/$', views.snippet_detail),
#]


from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from snippets import views

urlpatterns = [
    url(r'^snippets/$', views.SnippetList.as_view()),
    url(r'^snippets/(?P<pk>[0-9]+)/$', views.SnippetDetail.as_view()),
    url(r'^users/$', views.UserList.as_view()),
    url(r'^users/(?P<pk>[0-9]+)/$', views.UserDetail.as_view()),
]

urlpatterns = format_suffix_patterns(urlpatterns)
