Add: serve_file api url route

This commit is contained in:
Aroy-Art 2025-03-13 10:04:48 +01:00
parent 163a3e3b6f
commit b43d4c8612
Signed by: Aroy
GPG key ID: 583642324A1D2070

View file

@ -1,5 +1,6 @@
from django.urls import path, include
from apps.files.views import serve_content_file
urlpatterns = [
path("schema/", include("api.schema.urls")),
@ -7,4 +8,5 @@ urlpatterns = [
path("user/", include("api.user.urls")),
path("posts/", include("api.posts.urls")),
path("creators/", include("api.creators.urls")),
path("files/<str:file_hash>/", serve_content_file, name="serve_file"),
]