from django.conf.urls import url
from .. import views

urlpatterns = [
    # url(r'^photo/$', views.photo_list, name='photo_list'),
    url(r'^$', views.PhotoList.as_view(), name='photo_list'),
    url(r'^photo/(?P<pk>[0-9]+)/$', views.PhotoDetail.as_view(), name='photo_detail'),
    url(r'^photo/add/$', views.PhotoAdd.as_view(), name='photo_add'),
    url(r'^photo/(?P<pk>[0-9]+)/like/$', views.PhotoLikeView.as_view(), name='photo_like'),
]
