b057df4e0409cf0aafc9aeb0d3593094ff5a3f17
[audio.git] / src / archive / urls.py
1 from django.urls import path
2 from django.views.generic import RedirectView
3 from . import views
4
5 urlpatterns = [
6     path("", views.AudiobookList.as_view(), name="list_managed"),
7     path('new/', views.list_new, name="list_new"),
8     path('new/<path:filename>/', views.file_new, name="file_new"),
9     path('move_to_archive/<path:filename>/', views.move_to_archive, name="move_to_archive"),
10     path('publishing/', views.list_publishing, name="list_publishing"),
11     path('book/<slug:slug>/', views.BookView.as_view(), name="book"),
12     path('book-youtube-volume/<int:aid>/', views.book_youtube_volume, name="book_youtube_volume"),
13     path('file/<int:id>/', views.file_managed, name="file"),
14     path('publish/<int:aid>/', views.publish, name="publish"),
15     path('convert/<int:aid>/', views.publish, {'publish': False}, name="convert"),
16     path('download/<int:aid>/', views.download, name="download"),
17     path('download/<int:aid>.<slug:which>', views.download, name="download"),
18     path('cancel/<int:aid>/', views.cancel_publishing, name="cancel_publishing"),
19     path('remove_to_archive/<int:aid>/', views.remove_to_archive, name="remove_to_archive"),
20     path('unmanaged/', views.list_unmanaged, name="list_unmanaged"),
21     path('unmanaged/<path:filename>/', views.file_unmanaged, name="file_unmanaged"),
22     path('move_to_new/<path:filename>/', views.move_to_new, name="move_to_new"),
23 ]