Files
SportstimeAPI/dashboard/urls.py
Trey t 63acf7accb feat: add Django web app, CloudKit sync, dashboard, and game_datetime_utc export
Adds the full Django application layer on top of sportstime_parser:
- core: Sport, Team, Stadium, Game models with aliases and league structure
- scraper: orchestration engine, adapter, job management, Celery tasks
- cloudkit: CloudKit sync client, sync state tracking, sync jobs
- dashboard: staff dashboard for monitoring scrapers, sync, review queue
- notifications: email reports for scrape/sync results
- Docker setup for deployment (Dockerfile, docker-compose, entrypoint)

Game exports now use game_datetime_utc (ISO 8601 UTC) instead of
venue-local date+time strings, matching the canonical format used
by the iOS app.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 14:04:27 -06:00

22 lines
953 B
Python

from django.urls import path
from . import views
app_name = 'dashboard'
urlpatterns = [
path('', views.index, name='index'),
path('stats/', views.stats, name='stats'),
path('scraper-status/', views.scraper_status, name='scraper_status'),
path('sync-status/', views.sync_status, name='sync_status'),
path('review-queue/', views.review_queue, name='review_queue'),
path('export/', views.export_data, name='export'),
# Actions
path('run-scraper/<str:sport_code>/<int:season>/', views.run_scraper, name='run_scraper'),
path('run-all-scrapers/', views.run_all_scrapers, name='run_all_scrapers'),
path('run-sync/', views.run_sync, name='run_sync'),
path('export/download/', views.export_download, name='export_download'),
# API
path('api/sync-progress/<int:job_id>/', views.sync_progress_api, name='sync_progress_api'),
path('api/running-syncs/', views.running_syncs_api, name='running_syncs_api'),
]