from django.urls import path from . import coach_views, views app_name = "mobile" urlpatterns = [ # PWA plumbing. path("manifest.webmanifest", views.ManifestView.as_view(), name="manifest"), path("sw.js", views.ServiceWorkerView.as_view(), name="service_worker"), path("icon/.png", views.AppIconView.as_view(), name="icon"), path("push/subscribe/", views.PushSubscribeView.as_view(), name="push_subscribe"), path("calendar/.ics", views.CalendarFeedView.as_view(), name="calendar_feed"), # Member mode (M1-M7). path("", views.HomeView.as_view(), name="home"), path("calendar/", views.CalendarView.as_view(), name="calendar"), path("events//", views.EventDetailView.as_view(), name="event_detail"), path("news/", views.NewsListView.as_view(), name="news_list"), path("news//", views.NewsDetailView.as_view(), name="news_detail"), path("me/", views.MeView.as_view(), name="me"), path("me/payments/", views.PaymentsView.as_view(), name="payments"), path("me/calendar-sync/", views.CalendarFeedSettingsView.as_view(), name="calendar_feed_settings"), path("me//edit/", views.EditProfileView.as_view(), name="edit_profile"), path("notifications/", views.NotificationsView.as_view(), name="notifications"), # Coach mode (C1-C6). path("coach/", coach_views.CoachTodayView.as_view(), name="coach_today"), path("coach/attendance//", coach_views.CoachAttendanceView.as_view(), name="coach_attendance"), path("coach/events/new/", coach_views.CoachCreateEventView.as_view(), name="coach_create_event"), path("coach/news/new/", coach_views.CoachCreateNewsView.as_view(), name="coach_create_news"), path("coach/roster/add/", coach_views.CoachAddPlayerView.as_view(), name="coach_add_player"), path("coach/lineup//", coach_views.CoachLineupView.as_view(), name="coach_lineup"), path("coach/lineup//units/add/", coach_views.CoachLineupAddUnitView.as_view(), name="coach_lineup_add_unit"), path("coach/lineup/units//slots/add/", coach_views.CoachLineupAddSlotView.as_view(), name="coach_lineup_add_slot"), path("coach/lineup//publish/", coach_views.CoachLineupPublishView.as_view(), name="coach_lineup_publish"), ]