Add: serve_file api url route
This commit is contained in:
parent
163a3e3b6f
commit
b43d4c8612
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
from django.urls import path, include
|
from django.urls import path, include
|
||||||
|
|
||||||
|
from apps.files.views import serve_content_file
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("schema/", include("api.schema.urls")),
|
path("schema/", include("api.schema.urls")),
|
||||||
|
@ -7,4 +8,5 @@ urlpatterns = [
|
||||||
path("user/", include("api.user.urls")),
|
path("user/", include("api.user.urls")),
|
||||||
path("posts/", include("api.posts.urls")),
|
path("posts/", include("api.posts.urls")),
|
||||||
path("creators/", include("api.creators.urls")),
|
path("creators/", include("api.creators.urls")),
|
||||||
|
path("files/<str:file_hash>/", serve_content_file, name="serve_file"),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Reference in a new issue