from django.conf.urls import url

from .views import (
    BattleDetailView,
    CreateBattleView,
    OnGoingBattlesListView,
    SelectOpponentTeamView,
    SettledBattlesListView,
)


app_name = "battles"

urlpatterns = [
    url(r"^create/$", CreateBattleView.as_view(), name="create-battle"),
    url(r"^select-team/(?P<pk>[-\w]+)/$", SelectOpponentTeamView.as_view(), name="select-team"),
    url(r"^settled/$", SettledBattlesListView.as_view(), name="settled-battles-list"),
    url(r"^ongoing/$", OnGoingBattlesListView.as_view(), name="ongoing-battles-list"),
    url(r"^(?P<pk>[-\w]+)/$", BattleDetailView.as_view(), name="battle-detail"),
]

from django.conf.urls import url

from .views import (
    BattleDetailView,
    CreateBattleView,
    OnGoingBattlesListView,
    SelectOpponentTeamView,
    SettledBattlesListView,
)


app_name = "battles"

urlpatterns = [
    url(r"^create/$", CreateBattleView.as_view(), name="create-battle"),
    url(r"^select-team/(?P<pk>[-\w]+)/$", SelectOpponentTeamView.as_view(), name="select-team"),
    url(r"^settled/$", SettledBattlesListView.as_view(), name="settled-battles-list"),
    url(r"^ongoing/$", OnGoingBattlesListView.as_view(), name="ongoing-battles-list"),
    url(r"^(?P<pk>[-\w]+)/$", BattleDetailView.as_view(), name="battle-detail"),
]
