added rest user creation
This commit is contained in:
parent
7848f07252
commit
019ac98249
3 changed files with 66 additions and 11 deletions
13
dal/urls.py
13
dal/urls.py
|
|
@ -4,10 +4,21 @@ from django.conf.urls import url
|
|||
from django.contrib import admin
|
||||
|
||||
# Import the classes for the views
|
||||
from .views import Register, ChangeData, ChangePassword, ResetPassword, DeleteAccount, Index, LogOut, ResetRequest
|
||||
from .views import (
|
||||
Register,
|
||||
ChangeData,
|
||||
ChangePassword,
|
||||
ResetPassword,
|
||||
DeleteAccount,
|
||||
Index,
|
||||
LogOut,
|
||||
ResetRequest,
|
||||
UserCreateAPI
|
||||
)
|
||||
|
||||
urlpatterns = [
|
||||
path('register/', Register.as_view(), name="register"),
|
||||
path('create/', UserCreateAPI.as_view(), name="create"),
|
||||
path('changedata/', ChangeData.as_view(), name="change_data"),
|
||||
path('resetpassword/', ResetPassword.as_view(), name="reset_password"),
|
||||
path('changepassword/', ChangePassword.as_view(), name="change_password"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue