from django.urls import path from games.views import device, edition, game, general, platform, purchase, session urlpatterns = [ path("", general.index, name="index"), path("device/add", device.add_device, name="add_device"), path("device/delete/", device.delete_device, name="delete_device"), path("device/edit/", device.edit_device, name="edit_device"), path("device/list", device.list_devices, name="list_devices"), path("edition/add", edition.add_edition, name="add_edition"), path( "edition/add/for-game/", edition.add_edition, name="add_edition_for_game", ), path("edition//edit", edition.edit_edition, name="edit_edition"), path("edition/list", edition.list_editions, name="list_editions"), path( "edition//delete", edition.delete_edition, name="delete_edition", ), path("game/add", game.add_game, name="add_game"), path("game//edit", game.edit_game, name="edit_game"), path("game//view", game.view_game, name="view_game"), path("game//delete", game.delete_game, name="delete_game"), path("game/list", game.list_games, name="list_games"), path("platform/add", platform.add_platform, name="add_platform"), path( "platform//edit", platform.edit_platform, name="edit_platform", ), path( "platform//delete", platform.delete_platform, name="delete_platform", ), path("platform/list", platform.list_platforms, name="list_platforms"), path("purchase/add", purchase.add_purchase, name="add_purchase"), path( "purchase//edit", purchase.edit_purchase, name="edit_purchase", ), path( "purchase//drop", purchase.drop_purchase, name="drop_purchase", ), path( "purchase//delete", purchase.delete_purchase, name="delete_purchase", ), path( "purchase//finish", purchase.finish_purchase, name="finish_purchase", ), path( "purchase/list", purchase.list_purchases, name="list_purchases", ), path( "purchase//refund", purchase.refund_purchase, name="refund_purchase", ), path( "purchase/related-purchase-by-edition", purchase.related_purchase_by_edition, name="related_purchase_by_edition", ), path( "purchase/add/for-edition/", purchase.add_purchase, name="add_purchase_for_edition", ), path("session/add", session.add_session, name="add_session"), path( "session/add/for-purchase/", session.add_session, name="add_session_for_purchase", ), path( "session/add/from-game/", session.new_session_from_existing_session, {"template": "view_game.html#session-info"}, name="view_game_start_session_from_session", ), path( "session/add/from-list/", session.new_session_from_existing_session, {"template": "list_sessions.html#session-row"}, name="list_sessions_start_session_from_session", ), path("session//edit", session.edit_session, name="edit_session"), path( "session//delete", session.delete_session, name="delete_session", ), path( "session/end/from-game/", session.end_session, {"template": "view_game.html#session-info"}, name="view_game_end_session", ), path( "session/end/from-list/", session.end_session, {"template": "list_sessions.html#session-row"}, name="list_sessions_end_session", ), path("session/list", session.list_sessions, name="list_sessions"), path("session/search", session.search_sessions, name="search_sessions"), path("stats/", general.stats_alltime, name="stats_alltime"), path( "stats/", general.stats, name="stats_by_year", ), ]