mirror of
https://github.com/evgen-app/chess_rpg_backend.git
synced 2024-11-29 04:54:01 +03:00
22 lines
725 B
Python
22 lines
725 B
Python
|
from django.urls import path
|
||
|
|
||
|
from game.api.v1.views import (
|
||
|
ListCreateHeroView,
|
||
|
RetrieveHeroView,
|
||
|
PlayerCreateView,
|
||
|
DeckCreateView,
|
||
|
RetireUpdateDeleteDeckView,
|
||
|
RefreshAuthKey,
|
||
|
)
|
||
|
|
||
|
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/refresh", RefreshAuthKey.as_view(), name="player_create_api"),
|
||
|
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"
|
||
|
),
|
||
|
]
|