from django.conf.urls import url
from rest_framework.authtoken import views as rest_views
from member import views, apis

urlpatterns = [
    url(r'^users/',
        apis.UserListView.as_view(),
        name='userlist'),
    url(r'^signup/$',
        views.signup,
        name='signup'
        ),
    url(r'^api-token-auth/$',
        apis.CustomAuthTokenView.as_view(),
        name='api-token-auth-login'
        ),
    url(r'^logout/$',
        apis.UserLogoutView.as_view(),
        name='logout'
        ),
    url(r'^activate/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
        views.activate,
        name='activate'
        )
]
