mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-10 13:32:22 +01:00
28 lines
1.2 KiB
Python
28 lines
1.2 KiB
Python
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"),
|
|
]
|