add: game history

This commit is contained in:
2024-03-05 10:53:32 +01:00
parent 7a034c2b48
commit de146367c3
8 changed files with 201 additions and 24 deletions

View File

@ -3,9 +3,11 @@ from django.conf import settings
from django.conf.urls.static import static
from .GameViewSet import GameViewSet
from .GameHistoryView import GameHistoryView
from .GameConfigView import GameConfigView
urlpatterns = [
path("<int:pk>", GameViewSet.as_view({"get": "retrieve"}), name="game_page"),
path("history/<int:pk>", GameHistoryView.as_view(), name="history_page"),
path("", GameConfigView.as_view(), name = "game_config")
]