<reponame>yeyuning1/iHome<filename>iHome/users/urls.py
from django.conf.urls import url

from users import views

urlpatterns = [
    # url(r'^admin/', admin.site.urls),

    url(r'^api/v1.0/login/$', views.LoginView.as_view()),
    url(r'^api/v1.0/session/$', views.LoginStatusView.as_view()),
    url(r'^api/v1.0/logout/$', views.LogoutView.as_view()),
    url(r'^api/v1.0/user/profile/$', views.UserInfoView.as_view()),
    url(r'^api/v1.0/user/avatar/$', views.UserImageView.as_view()),
    url(r'^api/v1.0/user/auth/$', views.RealNameView.as_view()),
    url(r'^api/v1.0/imagecode/$', views.ImageCode.as_view()),
    url(r'^api/v1.0/smscode/$', views.SmsCode.as_view()),
    url(r'^api/v1.0/user/register/$', views.Register.as_view()),
    url(r'^api/v1.0/mobilecount/$', views.MobileCount.as_view()),
]


from django.conf.urls import url

from users import views

urlpatterns = [
    # url(r'^admin/', admin.site.urls),

    url(r'^api/v1.0/login/$', views.LoginView.as_view()),
    url(r'^api/v1.0/session/$', views.LoginStatusView.as_view()),
    url(r'^api/v1.0/logout/$', views.LogoutView.as_view()),
    url(r'^api/v1.0/user/profile/$', views.UserInfoView.as_view()),
    url(r'^api/v1.0/user/avatar/$', views.UserImageView.as_view()),
    url(r'^api/v1.0/user/auth/$', views.RealNameView.as_view()),
    url(r'^api/v1.0/imagecode/$', views.ImageCode.as_view()),
    url(r'^api/v1.0/smscode/$', views.SmsCode.as_view()),
    url(r'^api/v1.0/user/register/$', views.Register.as_view()),
    url(r'^api/v1.0/mobilecount/$', views.MobileCount.as_view()),
]
# url(r'^admin/', admin.site.urls),