urls.py 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. from django.urls import path
  2. import games.views as views
  3. app_name = "games"
  4. urlpatterns = [
  5. path(
  6. "",
  7. views.LibraryGameList.as_view(),
  8. name="game_list",
  9. ),
  10. path(
  11. "update/",
  12. views.trigger_rom_update,
  13. name="game_library_update",
  14. ),
  15. path(
  16. "library/update/status/",
  17. views.library_update_status,
  18. name="game_library_update_status",
  19. ),
  20. path(
  21. "publisher/",
  22. views.PublisherList.as_view(),
  23. name="publisher_list",
  24. ),
  25. path(
  26. "genre/",
  27. views.GenreList.as_view(),
  28. name="genre_list",
  29. ),
  30. path(
  31. "developer/",
  32. views.DeveloperList.as_view(),
  33. name="developer_list",
  34. ),
  35. path(
  36. "game-system/",
  37. views.GameSystemList.as_view(),
  38. name="gamesystem_list",
  39. ),
  40. path(
  41. "collection/",
  42. views.GameCollectionList.as_view(),
  43. name="gamecollection_list",
  44. ),
  45. path(
  46. "<str:slug>/",
  47. views.GameDetail.as_view(),
  48. name="game_detail",
  49. ),
  50. path(
  51. "<str:slug>/play/",
  52. views.GamePlayDetail.as_view(),
  53. name="game_play_detail",
  54. ),
  55. path(
  56. "game-system/<str:slug>/",
  57. views.GameSystemDetail.as_view(),
  58. name="game_system_detail",
  59. ),
  60. path(
  61. "genre/<str:slug>/",
  62. views.GenreDetail.as_view(),
  63. name="genre_detail",
  64. ),
  65. path(
  66. "publisher/<str:slug>/",
  67. views.PublisherDetail.as_view(),
  68. name="publisher_detail",
  69. ),
  70. path(
  71. "developer/<str:slug>/",
  72. views.DeveloperDetail.as_view(),
  73. name="developer_detail",
  74. ),
  75. path(
  76. "collection/<str:slug>/",
  77. views.GameCollectionDetail.as_view(),
  78. name="gamecollection_detail",
  79. ),
  80. ]