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-10 23:33:40 +03:00
|
|
|
RefreshAuthKey,
|
2022-06-06 20:15:45 +03:00
|
|
|
)
|
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"),
|
2022-06-10 23:33:40 +03:00
|
|
|
path("v1/player/refresh", RefreshAuthKey.as_view(), name="player_create_api"),
|
2022-06-06 20:15:45 +03:00
|
|
|
path("v1/player/", PlayerCreateView.as_view(), name="player_create_api"),
|
|
|
|
path("v1/deck/", DeckCreateView.as_view(), name="deck_create_api"),
|
|
|
|
path(
|
2022-06-07 23:54:26 +03:00
|
|
|
"v1/deck/<int:id>", RetireUpdateDeleteDeckView.as_view(), name="deck_retire_api"
|
2022-06-06 20:15:45 +03:00
|
|
|
),
|
2022-06-05 13:09:27 +03:00
|
|
|
]
|