2019-04-18 00:58:59 +02:00

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")
]