akarpov/akarpov/files/urls.py

31 lines
879 B
Python
Raw Normal View History

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,
delete_file_view,
file_update,
2023-03-27 16:15:03 +03:00
files_view,
folder_view,
)
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"
),
path("<str:slug>", files_view, name="view"),
path("<str:slug>/update", file_update, name="update"),
path("<str:slug>/delete", delete_file_view, name="delete"),
path("f/<str:slug>", folder_view, name="folder"),
]