2018-10-16 18:25:50 +00:00
|
|
|
# The different URLs this service does use
|
2018-10-09 17:49:47 +00:00
|
|
|
from django.urls import path
|
|
|
|
from django.conf.urls import url
|
|
|
|
from django.contrib import admin
|
|
|
|
|
2018-10-16 18:25:50 +00:00
|
|
|
# Import the classes for the views
|
2019-04-23 05:19:45 +00:00
|
|
|
from .views import (
|
|
|
|
Register,
|
|
|
|
ChangeData,
|
|
|
|
ChangePassword,
|
|
|
|
ResetPassword,
|
|
|
|
DeleteAccount,
|
|
|
|
Index,
|
|
|
|
LogOut,
|
|
|
|
ResetRequest,
|
2019-05-02 21:29:01 +00:00
|
|
|
UserCreateAPI,
|
2019-05-05 20:44:02 +00:00
|
|
|
ActivateAccount,
|
2019-05-26 20:13:58 +00:00
|
|
|
Seeds,
|
2019-05-05 20:44:02 +00:00
|
|
|
SeedRetrieveCreate
|
2019-04-23 05:19:45 +00:00
|
|
|
)
|
2018-10-09 17:49:47 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path('register/', Register.as_view(), name="register"),
|
2019-04-23 05:19:45 +00:00
|
|
|
path('create/', UserCreateAPI.as_view(), name="create"),
|
2018-10-09 17:49:47 +00:00
|
|
|
path('changedata/', ChangeData.as_view(), name="change_data"),
|
2019-05-26 20:13:58 +00:00
|
|
|
path('seeds/', Seeds.as_view(), name="user_seeds"),
|
2018-10-09 17:49:47 +00:00
|
|
|
path('resetpassword/', ResetPassword.as_view(), name="reset_password"),
|
|
|
|
path('changepassword/', ChangePassword.as_view(), name="change_password"),
|
|
|
|
path('deleteaccount/', DeleteAccount.as_view(), name="account_delete"),
|
2018-10-14 15:48:11 +00:00
|
|
|
path('index/', Index.as_view(), name="index"),
|
2018-10-14 17:21:17 +00:00
|
|
|
path('logout/', LogOut.as_view(), name="logout"),
|
2018-10-15 15:52:15 +00:00
|
|
|
path('reset/<str:user>/<str:token>/', ResetRequest.as_view()),
|
2019-05-02 21:29:01 +00:00
|
|
|
path('activate/<str:user>/<str:pwd>/<str:firstname>/<str:lastname>/<str:email>/<str:token>/', ActivateAccount.as_view()),
|
2018-10-15 15:52:15 +00:00
|
|
|
path('reset/', ResetRequest.as_view(), name="reset"),
|
2019-05-05 20:44:02 +00:00
|
|
|
path('otp/', SeedRetrieveCreate.as_view(), name="seed"),
|
2019-02-24 19:13:09 +00:00
|
|
|
path('', Index.as_view(), name="login_index"),
|
2019-02-19 22:39:47 +00:00
|
|
|
]
|