You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
336 B
10 lines
336 B
1 year ago
|
from django.urls import path, re_path
|
||
|
from apps.music.views import *
|
||
|
|
||
|
urlpatterns = [
|
||
|
re_path(r'^api/musician/$', MusicianListView.as_view()),
|
||
|
re_path(r'^api/musician/(?P<pk>\d+)/$', MusicianView.as_view()),
|
||
|
re_path(r'^api/album/$', AlbumListView.as_view()),
|
||
|
re_path(r'^api/album/(?P<pk>\d+)/$', AlbumView.as_view()),
|
||
|
]
|