11 lines
424 B
Python
11 lines
424 B
Python
from django.urls import path
|
|
from .views import ListCreateSongsView, SongsDetailView, LoginView, RegisterUsers
|
|
|
|
|
|
urlpatterns = [
|
|
path('songs/', ListCreateSongsView.as_view(), name="songs-list-create"),
|
|
path('songs/<int:pk>/', SongsDetailView.as_view(), name="songs-detail"),
|
|
path('auth/login/', LoginView.as_view(), name="auth-login"),
|
|
path('auth/register/', RegisterUsers.as_view(), name="auth-register")
|
|
]
|