game: add: retrive view

This commit is contained in:
2023-12-28 11:33:06 +01:00
parent 4739afbaf0
commit bfc58e74a9
5 changed files with 39 additions and 4 deletions

9
games/urls.py Normal file
View File

@ -0,0 +1,9 @@
from django.urls import path, re_path
from django.conf import settings
from django.conf.urls.static import static
from .viewset import GameViewSet
urlpatterns = [
path("<int:pk>", GameViewSet.as_view({"get": "retrieve"}), name="game_page"),
]