2022-12-31 13:18:27 +00:00
|
|
|
from django.urls import path
|
|
|
|
|
2023-01-20 13:37:46 +00:00
|
|
|
from games import views
|
2022-12-31 13:18:27 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2023-02-18 19:50:36 +00:00
|
|
|
path("", views.index, name="index"),
|
|
|
|
path(
|
|
|
|
"list-sessions/recent",
|
|
|
|
views.list_sessions,
|
|
|
|
{"filter": "recent"},
|
|
|
|
name="list_sessions_recent",
|
|
|
|
),
|
2022-12-31 13:18:27 +00:00
|
|
|
path("add-game/", views.add_game, name="add_game"),
|
2023-01-04 16:23:34 +00:00
|
|
|
path("add-platform/", views.add_platform, name="add_platform"),
|
2022-12-31 13:18:27 +00:00
|
|
|
path("add-session/", views.add_session, name="add_session"),
|
2023-01-04 18:19:49 +00:00
|
|
|
path(
|
|
|
|
"update-session/by-session/<int:session_id>",
|
|
|
|
views.update_session,
|
|
|
|
name="update_session",
|
|
|
|
),
|
2023-01-13 15:54:24 +00:00
|
|
|
path(
|
2023-02-18 20:43:51 +00:00
|
|
|
"start-session/<int:last_session_id>",
|
2023-01-13 15:54:24 +00:00
|
|
|
views.start_session,
|
|
|
|
name="start_session",
|
|
|
|
),
|
2023-09-17 15:17:22 +00:00
|
|
|
# path(
|
|
|
|
# "delete_session/by-id/<int:session_id>",
|
|
|
|
# views.delete_session,
|
|
|
|
# name="delete_session",
|
|
|
|
# ),
|
2022-12-31 13:18:27 +00:00
|
|
|
path("add-purchase/", views.add_purchase, name="add_purchase"),
|
2023-02-18 19:49:46 +00:00
|
|
|
path("add-edition/", views.add_edition, name="add_edition"),
|
2023-02-18 20:47:25 +00:00
|
|
|
path("edit-edition/<int:edition_id>", views.edit_edition, name="edit_edition"),
|
2023-10-01 19:28:02 +00:00
|
|
|
path("game/<int:game_id>/view", views.view_game, name="view_game"),
|
2023-02-20 16:16:19 +00:00
|
|
|
path("edit-platform/<int:platform_id>", views.edit_platform, name="edit_platform"),
|
2023-02-18 20:12:18 +00:00
|
|
|
path("add-device/", views.add_device, name="add_device"),
|
2023-01-30 16:38:44 +00:00
|
|
|
path("edit-session/<int:session_id>", views.edit_session, name="edit_session"),
|
2023-02-18 20:43:51 +00:00
|
|
|
path("edit-purchase/<int:purchase_id>", views.edit_purchase, name="edit_purchase"),
|
2022-12-31 13:18:27 +00:00
|
|
|
path("list-sessions/", views.list_sessions, name="list_sessions"),
|
2023-01-03 18:03:30 +00:00
|
|
|
path(
|
|
|
|
"list-sessions/by-purchase/<int:purchase_id>",
|
|
|
|
views.list_sessions,
|
2023-01-15 22:14:28 +00:00
|
|
|
{"filter": "purchase"},
|
|
|
|
name="list_sessions_by_purchase",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"list-sessions/by-platform/<int:platform_id>",
|
|
|
|
views.list_sessions,
|
|
|
|
{"filter": "platform"},
|
|
|
|
name="list_sessions_by_platform",
|
|
|
|
),
|
2023-02-19 13:30:26 +00:00
|
|
|
path(
|
|
|
|
"list-sessions/by-game/<int:game_id>",
|
|
|
|
views.list_sessions,
|
|
|
|
{"filter": "game"},
|
|
|
|
name="list_sessions_by_game",
|
|
|
|
),
|
2023-01-15 22:14:28 +00:00
|
|
|
path(
|
2023-02-18 19:49:46 +00:00
|
|
|
"list-sessions/by-edition/<int:edition_id>",
|
2023-01-15 22:14:28 +00:00
|
|
|
views.list_sessions,
|
2023-02-18 19:49:46 +00:00
|
|
|
{"filter": "edition"},
|
|
|
|
name="list_sessions_by_edition",
|
2023-01-03 18:03:30 +00:00
|
|
|
),
|
2023-02-19 13:30:26 +00:00
|
|
|
path(
|
|
|
|
"list-sessions/by-ownership/<str:ownership_type>",
|
|
|
|
views.list_sessions,
|
|
|
|
{"filter": "ownership_type"},
|
|
|
|
name="list_sessions_by_ownership_type",
|
|
|
|
),
|
2022-12-31 13:18:27 +00:00
|
|
|
]
|