13 lines
460 B
Python
13 lines
460 B
Python
from django.urls import path
|
|
from .views import AuthURL, CurrentSong, PauseSong, PlaySong, SpotifyList, spotify_callback, IsAuthenticated
|
|
|
|
urlpatterns = [
|
|
path('get-auth-url', AuthURL.as_view()),
|
|
path('redirect', spotify_callback),
|
|
path('is-auth', IsAuthenticated.as_view()),
|
|
path('current-song', CurrentSong.as_view()),
|
|
path('tokens', SpotifyList.as_view()),
|
|
path('play', PlaySong.as_view()),
|
|
path('pause', PauseSong.as_view()),
|
|
]
|