plateforme-tfjm2/apps/tournament/urls.py

12 lines
356 B
Python
Raw Normal View History

2020-04-29 14:26:52 +00:00
from django.urls import path
2020-04-29 15:58:11 +00:00
from .views import TournamentListView, TournamentDetailView, TeamDetailView
2020-04-29 14:26:52 +00:00
app_name = "tournament"
urlpatterns = [
path('list/', TournamentListView.as_view(), name="list"),
2020-04-29 14:59:59 +00:00
path('<int:pk>/', TournamentDetailView.as_view(), name="detail"),
2020-04-29 15:58:11 +00:00
path('team/<int:pk>/', TeamDetailView.as_view(), name="team_detail"),
2020-04-29 14:26:52 +00:00
]