mirror of
https://github.com/evgen-app/chess_rpg_backend.git
synced 2024-11-15 06:08:55 +03:00
20 lines
622 B
Python
20 lines
622 B
Python
from django.urls import path
|
|
|
|
from game.api.v1.views import (
|
|
ListCreateHeroView,
|
|
RetrieveHeroView,
|
|
PlayerCreateView,
|
|
DeckCreateView,
|
|
RetireUpdateDeleteDeckView,
|
|
)
|
|
|
|
urlpatterns = [
|
|
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:id>", RetireUpdateDeleteDeckView.as_view(), name="deck_retire_api"
|
|
),
|
|
]
|