Files
MarietjeDjango/marietje/queues/api/v1/urls.py
2023-11-12 09:33:19 +01:00

34 lines
1.5 KiB
Python

from django.urls import path
from queues.api.v1.views import (
PlaylistListAPIView,
PlaylistRetrieveAPIView,
QueueAPIView,
QueueSkipAPIView,
PlaylistSongMoveDownAPIView,
PlaylistSongCancelAPIView,
QueueRequestAPIView,
QueueVolumeDownAPIView,
QueueVolumeUpAPIView,
QueueMuteAPIView,
QueueCommandListAPIView,
QueueCommandDestroyAPIView,
QueueUpdateAPIView,
)
urlpatterns = [
path("current/", QueueAPIView.as_view(), name="queue_current"),
path("<int:pk>/", QueueUpdateAPIView.as_view(), name="queue_update"),
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"),
path("<int:pk>/commands/", QueueCommandListAPIView.as_view(), name="queue_command_list"),
path("commands/<int:pk>/", QueueCommandDestroyAPIView.as_view(), name="queue_command_destroy"),
]