mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-10 11:32:22 +01:00
Marietje 4.1: Addition of Django REST framework, Swagger, Dark mode and updates to Django and Bootstrap
This commit is contained in:
27
marietje/queues/api/v1/urls.py
Normal file
27
marietje/queues/api/v1/urls.py
Normal 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"),
|
||||
]
|
||||
Reference in New Issue
Block a user