2020-05-07 19:51:06 +01:00
|
|
|
"""flow urls"""
|
2020-05-07 20:30:52 +01:00
|
|
|
from django.urls import path
|
|
|
|
|
2020-05-10 23:49:48 +01:00
|
|
|
from passbook.flows.models import FlowDesignation
|
|
|
|
from passbook.flows.views import (
|
2020-09-24 19:06:37 +01:00
|
|
|
CancelView,
|
|
|
|
ConfigureFlowInitView,
|
2020-05-23 23:57:25 +01:00
|
|
|
FlowExecutorShellView,
|
2020-05-10 23:49:48 +01:00
|
|
|
FlowExecutorView,
|
|
|
|
ToDefaultFlow,
|
|
|
|
)
|
2020-05-07 20:30:52 +01:00
|
|
|
|
|
|
|
urlpatterns = [
|
2020-05-10 23:49:48 +01:00
|
|
|
path(
|
2020-05-12 13:49:47 +01:00
|
|
|
"-/default/authentication/",
|
2020-05-10 23:49:48 +01:00
|
|
|
ToDefaultFlow.as_view(designation=FlowDesignation.AUTHENTICATION),
|
2020-05-12 13:49:47 +01:00
|
|
|
name="default-authentication",
|
2020-05-10 23:49:48 +01:00
|
|
|
),
|
2020-05-11 00:12:57 +01:00
|
|
|
path(
|
|
|
|
"-/default/invalidation/",
|
|
|
|
ToDefaultFlow.as_view(designation=FlowDesignation.INVALIDATION),
|
|
|
|
name="default-invalidation",
|
|
|
|
),
|
2020-05-10 23:49:48 +01:00
|
|
|
path(
|
|
|
|
"-/default/recovery/",
|
|
|
|
ToDefaultFlow.as_view(designation=FlowDesignation.RECOVERY),
|
|
|
|
name="default-recovery",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"-/default/enrollment/",
|
|
|
|
ToDefaultFlow.as_view(designation=FlowDesignation.ENROLLMENT),
|
|
|
|
name="default-enrollment",
|
|
|
|
),
|
2020-05-12 13:50:00 +01:00
|
|
|
path(
|
|
|
|
"-/default/unenrollment/",
|
|
|
|
ToDefaultFlow.as_view(designation=FlowDesignation.UNRENOLLMENT),
|
|
|
|
name="default-unenrollment",
|
|
|
|
),
|
2020-06-29 23:11:01 +01:00
|
|
|
path("-/cancel/", CancelView.as_view(), name="cancel"),
|
2020-09-24 19:06:37 +01:00
|
|
|
path(
|
|
|
|
"-/configure/<uuid:stage_uuid>/",
|
|
|
|
ConfigureFlowInitView.as_view(),
|
|
|
|
name="configure",
|
|
|
|
),
|
2020-05-23 23:57:25 +01:00
|
|
|
path("b/<slug:flow_slug>/", FlowExecutorView.as_view(), name="flow-executor"),
|
|
|
|
path(
|
|
|
|
"<slug:flow_slug>/", FlowExecutorShellView.as_view(), name="flow-executor-shell"
|
|
|
|
),
|
2020-05-07 20:30:52 +01:00
|
|
|
]
|