a798412e17
Move Main Django Project into passbook.root while passbook.core holds core functionality. passbook.root contains main settings, ASGI & WSGI, celery and URLs.
31 lines
1.4 KiB
Python
31 lines
1.4 KiB
Python
"""passbook URL Configuration"""
|
|
from logging import getLogger
|
|
|
|
from django.urls import path
|
|
|
|
from passbook.core.auth import view
|
|
from passbook.core.views import authentication, overview, user
|
|
|
|
LOGGER = getLogger(__name__)
|
|
|
|
urlpatterns = [
|
|
# Authentication views
|
|
path('auth/login/', authentication.LoginView.as_view(), name='auth-login'),
|
|
path('auth/logout/', authentication.LogoutView.as_view(), name='auth-logout'),
|
|
path('auth/sign_up/', authentication.SignUpView.as_view(), name='auth-sign-up'),
|
|
path('auth/sign_up/<uuid:nonce>/confirm/', authentication.SignUpConfirmView.as_view(),
|
|
name='auth-sign-up-confirm'),
|
|
path('auth/process/denied/', view.FactorPermissionDeniedView.as_view(), name='auth-denied'),
|
|
path('auth/password/reset/<uuid:nonce>/', authentication.PasswordResetView.as_view(),
|
|
name='auth-password-reset'),
|
|
path('auth/process/', view.AuthenticationView.as_view(), name='auth-process'),
|
|
path('auth/process/<slug:factor>/', view.AuthenticationView.as_view(), name='auth-process'),
|
|
# User views
|
|
path('_/user/', user.UserSettingsView.as_view(), name='user-settings'),
|
|
path('_/user/delete/', user.UserDeleteView.as_view(), name='user-delete'),
|
|
path('_/user/change_password/', user.UserChangePasswordView.as_view(),
|
|
name='user-change-password'),
|
|
# Overview
|
|
path('', overview.OverviewView.as_view(), name='overview'),
|
|
]
|