50 lines
1.5 KiB
Python
50 lines
1.5 KiB
Python
from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns
|
|
from django.urls import include, path
|
|
|
|
from .provider import TeamsnapProvider
|
|
from .views import (
|
|
PreferencesFormView,
|
|
dashboard,
|
|
edit_lineup,
|
|
multi_lineup_choose,
|
|
schedule_view,
|
|
submit_lineup,
|
|
view_event,
|
|
)
|
|
|
|
urlpatterns = default_urlpatterns(TeamsnapProvider)
|
|
|
|
urlpatterns += [
|
|
path("preferences/", PreferencesFormView.as_view(), name="teamsnap_preferences"),
|
|
path("<int:team_id>/schedule/", schedule_view, name="teamsnap_schedule"),
|
|
path("<int:team_id>/dashboard/", dashboard, name="teamsnap_dashboard"),
|
|
path("dashboard/", dashboard, name="teamsnap_dashboard"),
|
|
path("schedule/", schedule_view, name="teamsnap_schedule"),
|
|
path(
|
|
"<int:team_id>/schedule/view_event/<int:event_id>",
|
|
view_event,
|
|
name="teamsnap_view_event",
|
|
),
|
|
path(
|
|
"<int:team_id>/schedule/edit_lineup/<int:event_ids>",
|
|
edit_lineup,
|
|
name="teamsnap_edit_lineup",
|
|
),
|
|
path(
|
|
"<int:team_id>/event/<int:event_id>/submit_lineup/",
|
|
submit_lineup,
|
|
name="teamsnap_submit_lineup",
|
|
),
|
|
path(
|
|
"<int:team_id>/event/<str:event_ids>/edit_lineup/",
|
|
edit_lineup,
|
|
name="teamsnap_edit_multiple_lineups",
|
|
),
|
|
path(
|
|
"<int:team_id>/multievent/choose",
|
|
multi_lineup_choose,
|
|
name="teamsnap_choose_multiple_lineups",
|
|
),
|
|
path("", include("teamsnap.lineup.urls")),
|
|
]
|