diora-web/radio/urls.py
2026-03-16 19:19:22 +01:00

20 lines
1.1 KiB
Python

from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('radio/sse/', views.sse_metadata, name='sse_metadata'),
path('radio/record/', views.record_track, name='record_track'),
path('radio/affiliate/', views.affiliate_links, name='affiliate_links'),
path('radio/save/', views.save_station, name='save_station'),
path('radio/remove/<int:pk>/', views.remove_station, name='remove_station'),
path('radio/favorite/<int:pk>/', views.toggle_favorite, name='toggle_favorite'),
path('radio/history/', views.history_json, name='history_json'),
path('radio/play/start/', views.start_play, name='start_play'),
path('radio/play/stop/', views.stop_play, name='stop_play'),
path('radio/recommendations/', views.recommendations, name='recommendations'),
path('radio/import/', views.import_m3u, name='import_m3u'),
path('radio/notes/<int:pk>/', views.save_station_notes, name='save_station_notes'),
path('radio/focus/record/', views.record_focus_session, name='record_focus_session'),
path('radio/focus/stats/', views.focus_stats, name='focus_stats'),
]