2020-05-07 18:51:06 +00:00
|
|
|
"""flow urls"""
|
2020-05-07 19:30:52 +00:00
|
|
|
from django.urls import path
|
|
|
|
|
2020-05-10 22:49:48 +00:00
|
|
|
from passbook.flows.models import FlowDesignation
|
|
|
|
from passbook.flows.views import (
|
2020-06-29 22:11:01 +00:00
|
|
|
CancelView,
|
2020-05-23 22:57:25 +00:00
|
|
|
FlowExecutorShellView,
|
2020-05-10 22:49:48 +00:00
|
|
|
FlowExecutorView,
|
|
|
|
ToDefaultFlow,
|
|
|
|
)
|
2020-05-07 19:30:52 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2020-05-10 22:49:48 +00:00
|
|
|
path(
|
2020-05-12 12:49:47 +00:00
|
|
|
"-/default/authentication/",
|
2020-05-10 22:49:48 +00:00
|
|
|
ToDefaultFlow.as_view(designation=FlowDesignation.AUTHENTICATION),
|
2020-05-12 12:49:47 +00:00
|
|
|
name="default-authentication",
|
2020-05-10 22:49:48 +00:00
|
|
|
),
|
2020-05-10 23:12:57 +00:00
|
|
|
path(
|
|
|
|
"-/default/invalidation/",
|
|
|
|
ToDefaultFlow.as_view(designation=FlowDesignation.INVALIDATION),
|
|
|
|
name="default-invalidation",
|
|
|
|
),
|
2020-05-10 22:49:48 +00: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 12:50:00 +00:00
|
|
|
path(
|
|
|
|
"-/default/unenrollment/",
|
|
|
|
ToDefaultFlow.as_view(designation=FlowDesignation.UNRENOLLMENT),
|
|
|
|
name="default-unenrollment",
|
|
|
|
),
|
2020-06-29 22:11:01 +00:00
|
|
|
path("-/cancel/", CancelView.as_view(), name="cancel"),
|
2020-05-23 22:57:25 +00: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 19:30:52 +00:00
|
|
|
]
|