2023-03-15 22:32:33 +03:00
|
|
|
from django.urls import path
|
|
|
|
|
2023-03-27 16:15:03 +03:00
|
|
|
from akarpov.files.views import (
|
|
|
|
ChunkedUploadDemo,
|
|
|
|
MyChunkedUploadCompleteView,
|
|
|
|
MyChunkedUploadView,
|
2023-04-06 14:41:10 +03:00
|
|
|
TopFolderView,
|
2023-04-13 00:54:44 +03:00
|
|
|
delete_file_view,
|
2023-04-15 12:02:37 +03:00
|
|
|
file_update,
|
2023-03-27 16:15:03 +03:00
|
|
|
files_view,
|
|
|
|
folder_view,
|
|
|
|
)
|
2023-03-15 22:32:33 +03:00
|
|
|
|
|
|
|
app_name = "files"
|
|
|
|
urlpatterns = [
|
2023-04-06 14:41:10 +03:00
|
|
|
path("", TopFolderView.as_view(), name="main"),
|
2023-03-27 16:15:03 +03:00
|
|
|
path("upload", ChunkedUploadDemo.as_view(), name="chunked_upload"),
|
|
|
|
path(
|
|
|
|
"api/chunked_upload_complete/",
|
|
|
|
MyChunkedUploadCompleteView.as_view(),
|
|
|
|
name="api_chunked_upload_complete",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"api/chunked_upload/", MyChunkedUploadView.as_view(), name="api_chunked_upload"
|
|
|
|
),
|
2023-03-15 22:32:33 +03:00
|
|
|
path("<str:slug>", files_view, name="view"),
|
2023-04-15 12:02:37 +03:00
|
|
|
path("<str:slug>/update", file_update, name="update"),
|
2023-04-13 00:54:44 +03:00
|
|
|
path("<str:slug>/delete", delete_file_view, name="delete"),
|
2023-03-15 22:32:33 +03:00
|
|
|
path("f/<str:slug>", folder_view, name="folder"),
|
|
|
|
]
|