Files
offline-db/content/urls.py
Barış Keserandgoogle-labs-jules[bot] 125962d35b ⚡ Bolt: Add select_related for users in ReviewViewSet (#178)
This optimization reduces N+1 database queries when serializing
the user field for reviews by pre-fetching the related user.
It ensures that returning a list of reviews is efficient.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-02-27 22:02:17 +00:00

29 lines
1.1 KiB
Python

from django.urls import path
from .views import KeyServeView
# from .views import (
# player_view, home_view, anime_detail,
# SubscribeAnimeAPIView, search_view, create_watch_party, watch_party_detail
# )
from django.urls import include
urlpatterns = [
# API for serving HLS keys securely
path('api/key/<uuid:pk>/', KeyServeView.as_view(), name='video-key'),
# Review API routes
path('api/content/', include('content.api.urls')),
# The following views are currently missing or broken.
# We comment them out to prevent ImportError on startup, but keep them for reference.
# path('', home_view, name='home'),
# path('search/', search_view, name='search'),
# path('anime/<int:pk>/', anime_detail, name='anime_detail'),
# path('api/anime/<int:pk>/subscribe/', SubscribeAnimeAPIView.as_view(), name='anime-subscribe'),
# path('watch/<int:episode_id>/', player_view, name='watch'),
# Watch Party
# path('watch-party/create/<int:episode_id>/', create_watch_party, name='create_watch_party'),
# path('watch-party/<uuid:uuid>/', watch_party_detail, name='watch_party_detail'),
]