2018-11-11 12:41:48 +00:00
|
|
|
"""passbook URL Configuration"""
|
2019-06-25 16:00:54 +00:00
|
|
|
from django.urls import path
|
2018-11-11 12:41:48 +00:00
|
|
|
|
2020-11-23 19:50:19 +00:00
|
|
|
from passbook.core.views import impersonate, library, shell, user
|
2018-11-11 12:41:48 +00:00
|
|
|
|
2019-06-25 16:00:54 +00:00
|
|
|
urlpatterns = [
|
2020-11-23 19:50:19 +00:00
|
|
|
path("", shell.ShellView.as_view(), name="shell"),
|
2018-12-10 15:58:35 +00:00
|
|
|
# User views
|
2020-05-08 14:50:50 +00:00
|
|
|
path("-/user/", user.UserSettingsView.as_view(), name="user-settings"),
|
2020-10-18 13:38:28 +00:00
|
|
|
path("-/user/tokens/", user.TokenListView.as_view(), name="user-tokens"),
|
|
|
|
path(
|
|
|
|
"-/user/tokens/create/",
|
|
|
|
user.TokenCreateView.as_view(),
|
|
|
|
name="user-tokens-create",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"-/user/tokens/<slug:identifier>/update/",
|
|
|
|
user.TokenUpdateView.as_view(),
|
|
|
|
name="user-tokens-update",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"-/user/tokens/<slug:identifier>/delete/",
|
|
|
|
user.TokenDeleteView.as_view(),
|
|
|
|
name="user-tokens-delete",
|
|
|
|
),
|
2020-11-23 19:50:19 +00:00
|
|
|
# Libray
|
|
|
|
path("-/overview/", library.LibraryView.as_view(), name="overview"),
|
2020-09-17 14:24:53 +00:00
|
|
|
# Impersonation
|
|
|
|
path(
|
|
|
|
"-/impersonation/<int:user_id>/",
|
|
|
|
impersonate.ImpersonateInitView.as_view(),
|
|
|
|
name="impersonate-init",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"-/impersonation/end/",
|
|
|
|
impersonate.ImpersonateEndView.as_view(),
|
|
|
|
name="impersonate-end",
|
|
|
|
),
|
2018-11-16 08:10:35 +00:00
|
|
|
]
|