Marietje 4.1: Addition of Django REST framework, Swagger, Dark mode and updates to Django and Bootstrap

This commit is contained in:
Lars van Rhijn
2023-09-14 19:55:51 +02:00
parent 379ababcc0
commit d1a1be7e2e
124 changed files with 4835 additions and 3490 deletions

View File

@ -0,0 +1,27 @@
from django.urls import path
from queues.api.v1.views import (
PlaylistListAPIView,
PlaylistRetrieveAPIView,
QueueAPIView,
QueueSkipAPIView,
PlaylistSongMoveDownAPIView,
PlaylistSongCancelAPIView,
QueueRequestAPIView,
QueueVolumeDownAPIView,
QueueVolumeUpAPIView,
QueueMuteAPIView,
)
urlpatterns = [
path("current/", QueueAPIView.as_view(), name="queue_current"),
path("current/skip/", QueueSkipAPIView.as_view(), name="queue_skip"),
path("current/request/", QueueRequestAPIView.as_view(), name="queue_request"),
path("current/volume-down/", QueueVolumeDownAPIView.as_view(), name="queue_volume_down"),
path("current/volume-up/", QueueVolumeUpAPIView.as_view(), name="queue_volume_up"),
path("current/mute/", QueueMuteAPIView.as_view(), name="queue_mute"),
path("playlists/", PlaylistListAPIView.as_view(), name="playlist_list"),
path("playlists/<int:pk>/", PlaylistRetrieveAPIView.as_view(), name="playlist_retrieve"),
path("playlist-song/<int:id>/move-down/", PlaylistSongMoveDownAPIView.as_view(), name="playlist_song_move_down"),
path("playlist-song/<int:id>/cancel/", PlaylistSongCancelAPIView.as_view(), name="playlist_song_cancel"),
]