Initial commit
This commit is contained in:
20
backend/api/urls.py
Normal file
20
backend/api/urls.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from django.urls import path
|
||||
from .views import (
|
||||
LoginView, MeView, PingView,
|
||||
WebAuthnRegisterBeginView, WebAuthnRegisterCompleteView,
|
||||
WebAuthnAuthBeginView, WebAuthnAuthCompleteView,
|
||||
)
|
||||
|
||||
urlpatterns = [
|
||||
path('login/', LoginView.as_view(), name='login'),
|
||||
path('me/', MeView.as_view(), name='me'),
|
||||
path('ping/', PingView.as_view(), name='ping'),
|
||||
|
||||
# WebAuthn (Touch ID) — registration (requires OAuth token)
|
||||
path('webauthn/register/begin/', WebAuthnRegisterBeginView.as_view(), name='webauthn-register-begin'),
|
||||
path('webauthn/register/complete/', WebAuthnRegisterCompleteView.as_view(), name='webauthn-register-complete'),
|
||||
|
||||
# WebAuthn (Touch ID) — authentication (public)
|
||||
path('webauthn/auth/begin/', WebAuthnAuthBeginView.as_view(), name='webauthn-auth-begin'),
|
||||
path('webauthn/auth/complete/', WebAuthnAuthCompleteView.as_view(), name='webauthn-auth-complete'),
|
||||
]
|
||||
Reference in New Issue
Block a user