chess_rpg_backend/game/urls.py

20 lines
622 B
Python
Raw Normal View History

2022-06-04 19:30:54 +03:00
from django.urls import path
2022-06-06 20:15:45 +03:00
from game.api.v1.views import (
ListCreateHeroView,
RetrieveHeroView,
PlayerCreateView,
DeckCreateView,
RetireUpdateDeleteDeckView,
)
2022-06-04 19:30:54 +03:00
urlpatterns = [
2022-06-06 20:15:45 +03:00
path("v1/hero/", ListCreateHeroView.as_view(), name="hero_api_create"),
path("v1/hero/<uuid:uuid>", RetrieveHeroView.as_view(), name="hero_api_retrieve"),
path("v1/player/", PlayerCreateView.as_view(), name="player_create_api"),
path("v1/deck/", DeckCreateView.as_view(), name="deck_create_api"),
path(
"v1/deck/<int:pk>", RetireUpdateDeleteDeckView.as_view(), name="deck_retire_api"
),
2022-06-05 13:09:27 +03:00
]