bglacial da5582ed19 Renommage des relations entre tables.
Suppression du paramètre teamid dans l'url pour récupérer tout ce qui est lié aux courses
2019-01-16 23:21:21 +01:00

13 lines
460 B
Python

from django.urls import path
from django.conf.urls import url
from .views import *
urlpatterns = [
path('drivers/', ListDriverView.as_view()),
path('races/', ListRaceView.as_view()),
path('relays/', ListRelayView.as_view()),
path('rules/', ListRulesView.as_view()),
path('teams/', ListTeamView.as_view()),
path('engagedpilots/', ListEngagedPilotView.as_view()),
url('race/(?P<raceid>\d+)', ListRelaysByRaceAndTeamView.as_view()),
]