Selah/backend/users_app/urls.py

25 lines
1.0 KiB
Python

# have to manually create this file
# manually created urls.py file
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from users_app import views
# user actions
urlpatterns = [
path('create-basic-user/', views.SaveCustomBasicUser.as_view()),
# for username validation, allow a string to be input as a param
path('check-username/<str:username>/', views.check_username),
path('check-email/<str:email>/', views.check_email),
path('logout', views.LogoutView.as_view()),
path('get-device-data/', views.get_user_device),
# path('send-password-reset-link/', views.send_password_reset_link),
# path('reset-user-password/', views.reset_password),
path('get-user-account-data/', views.get_user_account_data),
path('update-user-account-data/', views.update_user_account_data),
path('delete-user-account-data/', views.delete_user_account_data),
path('get-user-pfp/', views.get_user_pfp),
]