from django.conf.urls import url, include
from django.contrib import admin

from .views import UserDetailAPIView, UserStatusAPIView

# if django 2.0, this looks different V
urlpatterns = [
    url(r'^(?P<username>\w+)/$', UserDetailAPIView.as_view(), name='detail'),
    url(r'^(?P<username>\w+)/status/$', UserStatusAPIView.as_view(), name='book-list'),
]
