chess_rpg_backend/game/urls.py

10 lines
351 B
Python

from django.urls import path
from game.views import CreateHeroView, RetrieveHeroView, PlayerCreateView
urlpatterns = [
path("hero/", CreateHeroView.as_view(), name="hero_api_create"),
path("hero/<uuid:uuid>", RetrieveHeroView.as_view(), name="hero_api_retrieve"),
path("player/", PlayerCreateView.as_view(), name="player_create_api"),
]