2023-06-09 20:19:15 +00:00
|
|
|
from django.urls import path
|
|
|
|
import guild.views as views
|
2023-06-10 19:33:06 +00:00
|
|
|
import guild.views.player as player_views
|
|
|
|
import guild.views.character as character_views
|
2023-06-10 20:32:45 +00:00
|
|
|
import guild.views.adventure as adventure_views
|
2023-06-09 20:19:15 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path("", views.HomeView.as_view(), name="home"),
|
2023-06-10 19:33:06 +00:00
|
|
|
# path("players/", views.PlayerListView.as_view(), name="player_list"),
|
|
|
|
path("players/create/", player_views.CreatePlayerView.as_view(), name="create_player"),
|
|
|
|
path("players/<int:pk>/", player_views.PlayerDetailView.as_view(), name="player_detail"),
|
2023-06-11 18:37:03 +00:00
|
|
|
path("players/<int:pk>/update/", player_views.PlayerUpdateView.as_view(), name="player_update"),
|
|
|
|
path("players/<int:pk>/delete/", player_views.PlayerDeleteView.as_view(), name="player_delete"),
|
2023-06-11 19:20:45 +00:00
|
|
|
path("characters/", character_views.CharacterListView.as_view(), name="character_list"),
|
2023-06-10 19:33:06 +00:00
|
|
|
path("characters/create/", character_views.CreateCharacterView.as_view(), name="create_character"),
|
|
|
|
path("characters/<int:pk>/", character_views.CharacterDetailView.as_view(), name="character_detail"),
|
2023-06-11 18:37:03 +00:00
|
|
|
path("characters/<int:pk>/update/", character_views.CharacterUpdateView.as_view(), name="character_update"),
|
|
|
|
path("characters/<int:pk>/delete/", character_views.CharacterDeleteView.as_view(), name="character_delete"),
|
2023-06-11 19:20:45 +00:00
|
|
|
path("adventures/", adventure_views.AdventureListView.as_view(), name="adventure_list"),
|
2023-06-10 20:32:45 +00:00
|
|
|
path("adventures/create/", adventure_views.CreateAdventureView.as_view(), name="create_adventure"),
|
|
|
|
path("adventures/<int:pk>/", adventure_views.AdventureDetailView.as_view(), name="adventure_detail"),
|
2023-06-11 18:01:36 +00:00
|
|
|
path("adventures/<int:pk>/update/", adventure_views.AdventureUpdateView.as_view(), name="adventure_update"),
|
|
|
|
path("adventures/<int:pk>/delete/", adventure_views.AdventureDeleteView.as_view(), name="adventure_delete"),
|
|
|
|
path("adventures/<int:pk>/playsession/create/", adventure_views.PlaySessionCreateView.as_view(), name="create_playsession"),
|
|
|
|
path("adventures/<int:pk>/playsession/<int:playsession_pk>/update/", adventure_views.PlaySessionUpdateView.as_view(), name="playsession_update"),
|
|
|
|
path("adventures/<int:pk>/playsession/<int:playsession_pk>/delete/", adventure_views.PlaySessionDeleteView.as_view(), name="playsession_delete"),
|
2023-06-09 20:19:15 +00:00
|
|
|
]
|