diora-web/radio/urls.py
marwin 171560c71e
All checks were successful
Build and push Docker image / build (push) Successful in 14s
Test / test (push) Successful in 1m35s
Add thumbs up/down for creamfresh radio, hardcoded to that station
Relays to the DJ's own /dj/feedback via the same server-side-auth
proxy pattern as the stream itself, so the browser never needs the
station's credentials. Buttons only show when the currently playing
station is creamfresh radio (matched by URL against a hardcoded
constant) -- no other station's backend does anything with a vote,
so no other station gets the buttons yet.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Drq8o4HfFmwkXz2AgvaQ4p
2026-09-04 11:38:34 +02:00

24 lines
1.5 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/history/<int:pk>/delete/', views.delete_history_entry, name='delete_history_entry'),
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'),
path('radio/stream-player/', views.stream_player, name='stream_player'),
path('radio/creamfresh-stream/', views.creamfresh_stream, name='creamfresh_stream'),
path('radio/creamfresh-feedback/', views.creamfresh_feedback, name='creamfresh_feedback'),
]