from django.conf.urls import url

from referrals.views import UserViewSet, ChartViewSet, StatsViewSet

urlpatterns = [
    url(r'join/$', UserViewSet.as_view({'post': 'register_new'})),
    url(r'join/(?P<code>[\w]+)/$', UserViewSet.as_view({'post': 'register_from_referral'})),

    url(r'user/$', UserViewSet.as_view({'get': 'logged_in_details'})),
    url(r'user/detail/$', UserViewSet.as_view({'get': 'retrieve_detail'})),
    url(r'user/(?P<code>[\w]+)/$', UserViewSet.as_view({'get': 'retrieve', 'post': 'login'})),
    url(r'chart/$', ChartViewSet.as_view({'get': 'retrieve'})),
    url(r'stats/$', StatsViewSet.as_view({'get': 'retrieve'})),
]

5808c837bb029b33261639456c4c9d447e89852c
<mask token>

<mask token>
urlpatterns = [url('join/$', UserViewSet.as_view({'post': 'register_new'})),
    url('join/(?P<code>[\\w]+)/$', UserViewSet.as_view({'post':
    'register_from_referral'})), url('user/$', UserViewSet.as_view({'get':
    'logged_in_details'})), url('user/detail/$', UserViewSet.as_view({'get':
    'retrieve_detail'})), url('user/(?P<code>[\\w]+)/$', UserViewSet.
    as_view({'get': 'retrieve', 'post': 'login'})), url('chart/$',
    ChartViewSet.as_view({'get': 'retrieve'})), url('stats/$', StatsViewSet
    .as_view({'get': 'retrieve'}))]

from django.conf.urls import url
from referrals.views import UserViewSet, ChartViewSet, StatsViewSet
urlpatterns = [url('join/$', UserViewSet.as_view({'post': 'register_new'})),
    url('join/(?P<code>[\\w]+)/$', UserViewSet.as_view({'post':
    'register_from_referral'})), url('user/$', UserViewSet.as_view({'get':
    'logged_in_details'})), url('user/detail/$', UserViewSet.as_view({'get':
    'retrieve_detail'})), url('user/(?P<code>[\\w]+)/$', UserViewSet.
    as_view({'get': 'retrieve', 'post': 'login'})), url('chart/$',
    ChartViewSet.as_view({'get': 'retrieve'})), url('stats/$', StatsViewSet
    .as_view({'get': 'retrieve'}))]

from django.conf.urls import url

from referrals.views import UserViewSet, ChartViewSet, StatsViewSet

urlpatterns = [
    url(r'join/$', UserViewSet.as_view({'post': 'register_new'})),
    url(r'join/(?P<code>[\w]+)/$', UserViewSet.as_view({'post': 'register_from_referral'})),

    url(r'user/$', UserViewSet.as_view({'get': 'logged_in_details'})),
    url(r'user/detail/$', UserViewSet.as_view({'get': 'retrieve_detail'})),
    url(r'user/(?P<code>[\w]+)/$', UserViewSet.as_view({'get': 'retrieve', 'post': 'login'})),
    url(r'chart/$', ChartViewSet.as_view({'get': 'retrieve'})),
    url(r'stats/$', StatsViewSet.as_view({'get': 'retrieve'})),
]
