kumidc/frontend/urls.py

27 lines
1.5 KiB
Python
Raw Permalink Normal View History

2022-08-04 11:15:10 +00:00
from django.urls import path
from .views.dashboard import IndexView, DashboardView
from .views.password import PasswordChangeView
from .views.otp import TOTPActivationView, TOTPDeactivationView, TOTPDispatcherView
2022-08-05 14:16:34 +00:00
from .views.log import AuthorizationLogView
from .views.datatables.log import AuthorizationLogDataView
2022-08-06 18:24:50 +00:00
from .views.clients import ClientView, ClientEditView, ClientCreateView
2022-08-05 14:16:34 +00:00
from .views.datatables.clients import ClientDataView
2022-08-10 06:07:17 +00:00
from .views.profile import OwnProfileView
2022-08-04 11:15:10 +00:00
urlpatterns = [
path("", IndexView.as_view()),
path("dashboard/", DashboardView.as_view(), name="dashboard"),
2022-08-10 06:07:17 +00:00
path("profile/", OwnProfileView.as_view(), name="profile"),
2022-08-04 11:15:10 +00:00
path("profile/change_password/", PasswordChangeView.as_view(), name="change_password"),
path("profile/totp/", TOTPDispatcherView.as_view(), name="totp"),
path("profile/totp/activate/", TOTPActivationView.as_view(), name="activate_totp"),
path("profile/totp/deactivate/", TOTPDeactivationView.as_view(), name="deactivate_totp"),
2022-08-05 14:16:34 +00:00
path("authorizations/", AuthorizationLogView.as_view(), name="authorization_log"),
path("authorizations/data/", AuthorizationLogDataView.as_view(), name="authorization_log_data"),
path("apps/", ClientView.as_view(), name="client_list"),
path("apps/data/", ClientDataView.as_view(), name="client_list_data"),
path("apps/<str:pk>/edit/", ClientEditView.as_view(), name="client_edit"),
2022-08-06 18:24:50 +00:00
path("apps/new/", ClientCreateView.as_view(), name="client_create"),
2022-08-04 11:15:10 +00:00
]