42_ft_transcendence/games/urls.py
2024-03-04 13:28:46 +01:00

11 lines
356 B
Python

from django.urls import path, re_path
from django.conf import settings
from django.conf.urls.static import static
from .GameViewSet import GameViewSet
from .GameConfigView import GameConfigView
urlpatterns = [
path("<int:pk>", GameViewSet.as_view({"get": "retrieve"}), name="game_page"),
path("", GameConfigView.as_view(), name = "game_config")
]