charasheet/src/party/urls.py

32 lines
1.1 KiB
Python

from django.urls import path
from party import views
app_name = "party"
urlpatterns = [
path("", views.parties_list, name="list"),
path("create/", views.party_create, name="create"),
path("<int:pk>/", views.party_details, name="details"),
path("<int:pk>/change/", views.party_change, name="change"),
path("<int:pk>/delete/", views.party_delete, name="delete"),
path("<int:pk>/reset_stats/", views.party_reset_stats, name="reset_stats"),
path("<int:pk>/add_effect/", views.party_add_effect, name="add_effect"),
path(
"<int:pk>/delete_effect/<int:effect_pk>/",
views.party_delete_effect,
name="delete_effect",
),
path(
"<int:pk>/increase_rounds/",
views.party_increase_rounds,
name="increase_rounds",
),
path(
"<int:pk>/decrease_rounds/",
views.party_decrease_rounds,
name="decrease_rounds",
),
path("<int:pk>/leave/<int:character_pk>/", views.party_leave, name="leave"),
path("<int:pk>/join/<int:character_pk>/", views.party_join, name="join"),
path("<int:pk>/refuse/<int:character_pk>/", views.party_refuse, name="refuse"),
]