Coverage for src/django_otp_webauthn/urls.py: 0%
5 statements
« prev ^ index » next coverage.py v7.5.4, created at 2024-06-23 20:15 +0000
« prev ^ index » next coverage.py v7.5.4, created at 2024-06-23 20:15 +0000
1from django.urls import path
2from django.views.i18n import JavaScriptCatalog
4from django_otp_webauthn.views import (
5 BeginCredentialAuthenticationView,
6 BeginCredentialRegistrationView,
7 CompleteCredentialAuthenticationView,
8 CompleteCredentialRegistrationView,
9)
11app_name = "otp_webauthn"
13urlpatterns = [
14 path(
15 "registration/begin/",
16 BeginCredentialRegistrationView.as_view(),
17 name="credential-registration-begin",
18 ),
19 path(
20 "registration/complete/",
21 CompleteCredentialRegistrationView.as_view(),
22 name="credential-registration-complete",
23 ),
24 path(
25 "authentication/begin/",
26 BeginCredentialAuthenticationView.as_view(),
27 name="credential-authentication-begin",
28 ),
29 path(
30 "authentication/complete/",
31 CompleteCredentialAuthenticationView.as_view(),
32 name="credential-authentication-complete",
33 ),
34 path(
35 "jsi18n/",
36 JavaScriptCatalog.as_view(packages=["django_otp_webauthn"]),
37 name="js-i18n-catalog",
38 ),
39]