Skip to content

Instantly share code, notes, and snippets.

@mitchtabian
Created October 15, 2019 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitchtabian/67f372592ffd856c467d55c435c29d69 to your computer and use it in GitHub Desktop.
Save mitchtabian/67f372592ffd856c467d55c435c29d69 to your computer and use it in GitHub Desktop.
from django.urls import path
from account.api.views import(
registration_view,
ObtainAuthTokenView,
account_properties_view,
update_account_view,
does_account_exist_view,
ChangePasswordView,
)
from rest_framework.authtoken.views import obtain_auth_token
app_name = 'account'
urlpatterns = [
path('check_if_account_exists/', does_account_exist_view, name="check_if_account_exists"),
path('change_password/', ChangePasswordView.as_view(), name="change_password"),
path('properties', account_properties_view, name="properties"),
path('properties/update', update_account_view, name="update"),
path('login', ObtainAuthTokenView.as_view(), name="login"),
path('register', registration_view, name="register"),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment