-
Notifications
You must be signed in to change notification settings - Fork 125
/
urls.py
39 lines (36 loc) · 1.31 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from django.urls import include, path
from styleguide_example.files.apis import (
FileDirectUploadFinishApi,
FileDirectUploadLocalApi,
FileDirectUploadStartApi,
FileStandardUploadApi,
)
# Depending on your case, you might want to exclude certain urls, based on the values of
# FILE_UPLOAD_STRATEGY and FILE_UPLOAD_STORAGE
# For the sake fo simplicity and to serve as an example project, we are including everything here.
urlpatterns = [
path(
"upload/",
include(
(
[
path("standard/", FileStandardUploadApi.as_view(), name="standard"),
path(
"direct/",
include(
(
[
path("start/", FileDirectUploadStartApi.as_view(), name="start"),
path("finish/", FileDirectUploadFinishApi.as_view(), name="finish"),
path("local/<str:file_id>/", FileDirectUploadLocalApi.as_view(), name="local"),
],
"direct",
)
),
),
],
"upload",
)
),
)
]