mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-04 20:11:45 +02:00
0fb37a59fa
Revoked tokens previously stayed in the list with no way to remove them. Adds a delete action (hard delete, scoped to the owner, gated behind demo mode) shown on revoked rows, alongside the existing revoke action on active ones. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
71 lines
1.6 KiB
Python
71 lines
1.6 KiB
Python
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
path("", views.index, name="index"),
|
|
path("login/", views.UserLoginView.as_view(), name="login"),
|
|
# path("login/fallback/", views.UserLoginView.as_view(), name="fallback_login"),
|
|
path("logout/", views.logout_view, name="logout"),
|
|
path(
|
|
"user/toggle-amount-visibility/",
|
|
views.toggle_amount_visibility,
|
|
name="toggle_amount_visibility",
|
|
),
|
|
path(
|
|
"user/toggle-sound-playing/",
|
|
views.toggle_sound_playing,
|
|
name="toggle_sound_playing",
|
|
),
|
|
path(
|
|
"user/session/toggle-sidebar/",
|
|
views.toggle_sidebar_status,
|
|
name="toggle_sidebar_status",
|
|
),
|
|
path(
|
|
"user/session/toggle-theme/",
|
|
views.toggle_theme,
|
|
name="toggle_theme",
|
|
),
|
|
path(
|
|
"user/settings/",
|
|
views.update_settings,
|
|
name="user_settings",
|
|
),
|
|
path(
|
|
"user/api-tokens/add/",
|
|
views.api_token_add,
|
|
name="user_api_token_add",
|
|
),
|
|
path(
|
|
"user/api-tokens/<int:token_id>/revoke/",
|
|
views.api_token_revoke,
|
|
name="user_api_token_revoke",
|
|
),
|
|
path(
|
|
"user/api-tokens/<int:token_id>/delete/",
|
|
views.api_token_delete,
|
|
name="user_api_token_delete",
|
|
),
|
|
path(
|
|
"users/",
|
|
views.users_index,
|
|
name="users_index",
|
|
),
|
|
path(
|
|
"users/list/",
|
|
views.users_list,
|
|
name="users_list",
|
|
),
|
|
path(
|
|
"user/add/",
|
|
views.user_add,
|
|
name="user_add",
|
|
),
|
|
path(
|
|
"user/<int:pk>/edit/",
|
|
views.user_edit,
|
|
name="user_edit",
|
|
),
|
|
]
|