fnp
/
audio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[audio.git]
/
src
/
youtube
/
urls.py
diff --git
a/src/youtube/urls.py
b/src/youtube/urls.py
index
fb9ddc7
..
91dbeb4
100644
(file)
--- a/
src/youtube/urls.py
+++ b/
src/youtube/urls.py
@@
-1,10
+1,12
@@
-from django.conf.urls import url
from django.urls import path
from . import views
urlpatterns = [
from django.urls import path
from . import views
urlpatterns = [
- url(r'^publish/(\d+)/$', views.publish, name="youtube_publish"),
+ path('publish/<int:aid>/', views.publish, name="youtube_publish"),
+ path('book/<slug:slug>/publish/', views.book_publish, name="youtube_book_publish"),
path('thumbnail/<int:aid>/', views.thumbnail, name='youtube_thumbnail'),
path('thumbnail/<int:aid>/', views.thumbnail, name='youtube_thumbnail'),
+ path('thumbnail/<int:aid>/<int:thumbnail_id>/', views.thumbnail, name='youtube_thumbnail'),
path('preview/<int:pk>/', views.Preview.as_view(), name="youtube_preview"),
path('update/<int:pk>/', views.Update.as_view(), name="youtube_update"),
path('preview/<int:pk>/', views.Preview.as_view(), name="youtube_preview"),
path('update/<int:pk>/', views.Update.as_view(), name="youtube_update"),
+ path('update-thumbnail/<int:pk>/', views.UpdateThumbnail.as_view(), name="youtube_update_thumbnail"),
]
]